mirror of
https://github.com/reactos/reactos.git
synced 2024-10-01 06:57:08 +00:00
[MSGINA]
Fix potential bug in ReadRegDwordKey. CORE-7756 #resolve svn path=/trunk/; revision=61594
This commit is contained in:
parent
4ba150ba61
commit
f1c6047311
|
@ -102,7 +102,7 @@ ReadRegDwordKey(
|
|||
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue