From f497d499ef36ebe7bbc410aab78ef259da294acd Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Wed, 10 Feb 2021 09:55:17 +1000 Subject: [PATCH] Core - RequestContext::Create add missing UnWrap call Unsure if this method is still used, probably isn't. Add the missing call incase it's used at some point --- CefSharp.Core.Runtime/RequestContext.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CefSharp.Core.Runtime/RequestContext.h b/CefSharp.Core.Runtime/RequestContext.h index a465814d3..14c92d28c 100644 --- a/CefSharp.Core.Runtime/RequestContext.h +++ b/CefSharp.Core.Runtime/RequestContext.h @@ -118,7 +118,7 @@ namespace CefSharp /// Returns a new RequestContext static IRequestContext^ CreateContext(IRequestContext^ other, IRequestContextHandler^ requestContextHandler) { - auto otherRequestContext = static_cast(other); + auto otherRequestContext = static_cast(other->UnWrap()); CefRefPtr handler = requestContextHandler == nullptr ? NULL : new CefRequestContextHandlerAdapter(requestContextHandler); auto newContext = CefRequestContext::CreateContext(otherRequestContext, handler);