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
This commit is contained in:
Alex Maitland
2021-02-10 09:55:17 +10:00
parent 1084e14eee
commit f497d499ef
+1 -1
View File
@@ -118,7 +118,7 @@ namespace CefSharp
/// <returns>Returns a new RequestContext</returns>
static IRequestContext^ CreateContext(IRequestContext^ other, IRequestContextHandler^ requestContextHandler)
{
auto otherRequestContext = static_cast<RequestContext^>(other);
auto otherRequestContext = static_cast<RequestContext^>(other->UnWrap());
CefRefPtr<CefRequestContextHandler> handler = requestContextHandler == nullptr ? NULL : new CefRequestContextHandlerAdapter(requestContextHandler);
auto newContext = CefRequestContext::CreateContext(otherRequestContext, handler);