Skip to content

Commit 84a57ad

Browse files
committed
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
1 parent f929914 commit 84a57ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CefSharp.Core.Runtime/RequestContext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ namespace CefSharp
118118
/// <returns>Returns a new RequestContext</returns>
119119
static IRequestContext^ CreateContext(IRequestContext^ other, IRequestContextHandler^ requestContextHandler)
120120
{
121-
auto otherRequestContext = static_cast<RequestContext^>(other);
121+
auto otherRequestContext = static_cast<RequestContext^>(other->UnWrap());
122122
CefRefPtr<CefRequestContextHandler> handler = requestContextHandler == nullptr ? NULL : new CefRequestContextHandlerAdapter(requestContextHandler);
123123

124124
auto newContext = CefRequestContext::CreateContext(otherRequestContext, handler);

0 commit comments

Comments
 (0)