mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 22:02:14 +00:00
add some NULL checks
svn path=/trunk/; revision=43555
This commit is contained in:
parent
37a6c638aa
commit
58a1fb8784
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue