Author: tfaber
Date: Thu May 14 13:02:49 2015
New Revision: 67711
URL:
http://svn.reactos.org/svn/reactos?rev=67711&view=rev
Log:
[ADVAPI32]
- Add parameter check to RegQueryInfoKeyA
CORE-6976
Modified:
trunk/reactos/dll/win32/advapi32/reg/reg.c
Modified: trunk/reactos/dll/win32/advapi32/reg/reg.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/reg/reg…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/reg/reg.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/reg/reg.c [iso-8859-1] Thu May 14 13:02:49 2015
@@ -3604,6 +3604,11 @@
NTSTATUS Status;
DWORD cClass = 0;
+ if ((lpClass) && (!lpcClass))
+ {
+ return ERROR_INVALID_PARAMETER;
+ }
+
RtlInitUnicodeString(&UnicodeString,
NULL);
if (lpClass != NULL)