add some NULL checks

svn path=/trunk/; revision=43555
This commit is contained in:
Christoph von Wittich 2009-10-18 14:47:16 +00:00
parent 37a6c638aa
commit 58a1fb8784

View file

@ -3272,6 +3272,9 @@ RegOpenKeyA(HKEY hKey,
TRACE("RegOpenKeyA hKey 0x%x lpSubKey %s phkResult %p\n",
hKey, lpSubKey, phkResult);
if (!phkResult)
return ERROR_INVALID_PARAMETER;
if (!hKey && lpSubKey && phkResult)
{
return ERROR_INVALID_HANDLE;
@ -3308,6 +3311,9 @@ RegOpenKeyW(HKEY hKey,
TRACE("RegOpenKeyW hKey 0x%x lpSubKey %S phkResult %p\n",
hKey, lpSubKey, phkResult);
if (!phkResult)
return ERROR_INVALID_PARAMETER;
if (!hKey && lpSubKey && phkResult)
{
return ERROR_INVALID_HANDLE;