urlmon: Fix NULL dereference in BindProtocol_UnlockRequest.

This commit is contained in:
Yuxuan Shui 2023-09-05 17:29:50 +01:00 committed by Alexandre Julliard
parent ac58b5fefd
commit 1e8393f976

View file

@ -815,7 +815,9 @@ static HRESULT WINAPI ProtocolHandler_UnlockRequest(IInternetProtocol *iface)
TRACE("(%p)\n", This);
return IInternetProtocol_UnlockRequest(This->protocol);
if (This->protocol)
return IInternetProtocol_UnlockRequest(This->protocol);
return S_OK;
}
static const IInternetProtocolVtbl InternetProtocolHandlerVtbl = {