NDRCContextBinding should raise an exception when NULL pointer is passed

svn path=/trunk/; revision=21417
This commit is contained in:
Saveliy Tretiakov 2006-03-30 16:58:12 +00:00
parent d6de71713e
commit ae889d6508

View file

@ -3303,6 +3303,8 @@ NDR_SCONTEXT WINAPI NdrServerContextNewUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
RPC_BINDING_HANDLE WINAPI NDRCContextBinding(NDR_CCONTEXT CContext)
{
if(!CContext)
RpcRaiseException(ERROR_INVALID_HANDLE);
return (RPC_BINDING_HANDLE)((CContextHandle*)CContext)->Binding;
}