From 0e09ade10b63ce7a5525e612b0783539dc50847a Mon Sep 17 00:00:00 2001 From: Aric Stewart Date: Wed, 7 Apr 2010 11:53:12 -0500 Subject: [PATCH] rpcrt4: Improve NdrDllRegisterProxy parameter checking. --- dlls/rpcrt4/cpsf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/rpcrt4/cpsf.c b/dlls/rpcrt4/cpsf.c index 6b12c01da5d..9375c40fa4c 100644 --- a/dlls/rpcrt4/cpsf.c +++ b/dlls/rpcrt4/cpsf.c @@ -240,6 +240,10 @@ HRESULT WINAPI NdrDllRegisterProxy(HMODULE hDll, DWORD len; TRACE("(%p,%p,%s)\n", hDll, pProxyFileList, debugstr_guid(pclsid)); + + if (!hDll) return E_HANDLE; + if (!*pProxyFileList) return E_NOINTERFACE; + if (pclsid) format_clsid( clsid, pclsid ); else if ((*pProxyFileList)->TableSize > 0)