mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 21:38:43 +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;
|
NTSTATUS Status;
|
||||||
DWORD cClass = 0;
|
DWORD cClass = 0;
|
||||||
|
|
||||||
|
if ((lpClass) && (!lpcClass))
|
||||||
|
{
|
||||||
|
return ERROR_INVALID_PARAMETER;
|
||||||
|
}
|
||||||
|
|
||||||
RtlInitUnicodeString(&UnicodeString,
|
RtlInitUnicodeString(&UnicodeString,
|
||||||
NULL);
|
NULL);
|
||||||
if (lpClass != NULL)
|
if (lpClass != NULL)
|
||||||
|
|
Loading…
Reference in a new issue