mirror of
https://github.com/reactos/reactos.git
synced 2025-01-02 12:32:47 +00:00
[ADVAPI32]
- Add parameter check to RegQueryInfoKeyA CORE-6976 svn path=/trunk/; revision=67711
This commit is contained in:
parent
a4c81347b4
commit
f94cb518bb
1 changed files with 5 additions and 0 deletions
|
@ -3604,6 +3604,11 @@ RegQueryInfoKeyA(HKEY hKey,
|
|||
NTSTATUS Status;
|
||||
DWORD cClass = 0;
|
||||
|
||||
if ((lpClass) && (!lpcClass))
|
||||
{
|
||||
return ERROR_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
RtlInitUnicodeString(&UnicodeString,
|
||||
NULL);
|
||||
if (lpClass != NULL)
|
||||
|
|
Loading…
Reference in a new issue