Fix (registry.c:325, dated 20050425) test failure. Description: Added RegOpenKeyA/W check for input param (if it's NULL pointer, returning error)

svn path=/trunk/; revision=14849
This commit is contained in:
Aleksey Bragin 2005-04-28 20:26:06 +00:00
parent 492c96c8f9
commit 23c9abb0b3

View file

@ -1731,6 +1731,10 @@ RegOpenKeyA (HKEY hKey,
NTSTATUS Status;
DPRINT("RegOpenKeyA hKey 0x%x lpSubKey %s phkResult %p\n", hKey, lpSubKey, phkResult);
// Check input params
if (phkResult == NULL) return ERROR_INVALID_PARAMETER;
Status = MapDefaultKey (&KeyHandle,
hKey);
if (!NT_SUCCESS(Status))
@ -1782,6 +1786,10 @@ RegOpenKeyW (HKEY hKey,
NTSTATUS Status;
DPRINT("RegOpenKeyW hKey 0x%x lpSubKey %S phkResult %p\n", hKey, lpSubKey, phkResult);
// Check input params
if (phkResult == NULL) return ERROR_INVALID_PARAMETER;
Status = MapDefaultKey (&KeyHandle,
hKey);
if (!NT_SUCCESS(Status))