mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
NDRCContextBinding should raise an exception when NULL pointer is passed
svn path=/trunk/; revision=21417
This commit is contained in:
parent
d6de71713e
commit
ae889d6508
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue