mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 22:47:28 +00:00
add some NULL checks
svn path=/trunk/; revision=43555
This commit is contained in:
parent
37a6c638aa
commit
58a1fb8784
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue