Aric Stewart : rpcrt4: Improve NdrDllRegisterProxy parameter checking.
Alexandre Julliard
julliard at winehq.org
Thu Apr 8 11:12:41 CDT 2010
Module: wine
Branch: master
Commit: 0e09ade10b63ce7a5525e612b0783539dc50847a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0e09ade10b63ce7a5525e612b0783539dc50847a
Author: Aric Stewart <aric at codeweavers.com>
Date: Wed Apr 7 11:53:12 2010 -0500
rpcrt4: Improve NdrDllRegisterProxy parameter checking.
---
dlls/rpcrt4/cpsf.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/rpcrt4/cpsf.c b/dlls/rpcrt4/cpsf.c
index 6b12c01..9375c40 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)
More information about the wine-cvs
mailing list