Author: ekohl
Date: Sun Jan 12 21:23:01 2014
New Revision: 61594
URL:
http://svn.reactos.org/svn/reactos?rev=61594&view=rev
Log:
[MSGINA]
Fix potential bug in ReadRegDwordKey.
CORE-7756 #resolve
Modified:
trunk/reactos/dll/win32/msgina/msgina.c
Modified: trunk/reactos/dll/win32/msgina/msgina.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/msgina.c?…
==============================================================================
--- trunk/reactos/dll/win32/msgina/msgina.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/msgina.c [iso-8859-1] Sun Jan 12 21:23:01 2014
@@ -102,7 +102,7 @@
cbData = sizeof(DWORD);
rc = RegQueryValueExW(hKey, pszKey, NULL, &dwType, (LPBYTE)&dwValue,
&cbData);
- if (rc == ERROR_SUCCESS)
+ if (rc == ERROR_SUCCESS && dwType == REG_DWORD)
*pValue = dwValue;
return ERROR_SUCCESS;