From 62ae9ed36fd6db5629802bc48b1f5d8454da4381 Mon Sep 17 00:00:00 2001 From: GrabzIt Date: Fri, 6 Oct 2017 08:26:59 +0100 Subject: [PATCH] Fixed pointer --- CefSharp.Core/ManagedCefBrowserAdapter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CefSharp.Core/ManagedCefBrowserAdapter.cpp b/CefSharp.Core/ManagedCefBrowserAdapter.cpp index 5e9b4ee7a0..e3a4c218eb 100644 --- a/CefSharp.Core/ManagedCefBrowserAdapter.cpp +++ b/CefSharp.Core/ManagedCefBrowserAdapter.cpp @@ -1,4 +1,4 @@ -// Copyright © 2010-2017 The CefSharp Authors. All rights reserved. +// Copyright © 2010-2017 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. @@ -29,7 +29,7 @@ void ManagedCefBrowserAdapter::CreateOffscreenBrowser(IntPtr windowHandle, Brows CefString addressNative = StringUtils::ToNative(address); if (!CefBrowserHost::CreateBrowser(window, _clientAdapter.get(), addressNative, - *browserSettings->_browserSettings, *requestContext)) + *browserSettings->_browserSettings, static_cast>(requestContext))) { throw gcnew InvalidOperationException("Failed to create offscreen browser. Call Cef.Initialize() first."); } @@ -77,7 +77,7 @@ void ManagedCefBrowserAdapter::CreateBrowser(BrowserSettings^ browserSettings, R CefString addressNative = StringUtils::ToNative(address); CefBrowserHost::CreateBrowser(window, _clientAdapter.get(), addressNative, - *browserSettings->_browserSettings, *requestContext); + *browserSettings->_browserSettings, static_cast>(requestContext)); } void ManagedCefBrowserAdapter::Resize(int width, int height)