Author: tretiakov
Date: Thu Mar 30 20:58:12 2006
New Revision: 21417
URL:
http://svn.reactos.ru/svn/reactos?rev=21417&view=rev
Log:
NDRCContextBinding should raise an exception when NULL pointer is passed
Modified:
trunk/reactos/dll/win32/rpcrt4/ndr_marshall.c
Modified: trunk/reactos/dll/win32/rpcrt4/ndr_marshall.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/rpcrt4/ndr_marsha…
==============================================================================
--- trunk/reactos/dll/win32/rpcrt4/ndr_marshall.c (original)
+++ trunk/reactos/dll/win32/rpcrt4/ndr_marshall.c Thu Mar 30 20:58:12 2006
@@ -3303,6 +3303,8 @@
RPC_BINDING_HANDLE WINAPI NDRCContextBinding(NDR_CCONTEXT CContext)
{
-
+ if(!CContext)
+ RpcRaiseException(ERROR_INVALID_HANDLE);
+
return (RPC_BINDING_HANDLE)((CContextHandle*)CContext)->Binding;
}