projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ba150b
)
[MSGINA]
author
Eric Kohl
<eric.kohl@reactos.org>
Sun, 12 Jan 2014 21:23:01 +0000
(21:23 +0000)
committer
Eric Kohl
<eric.kohl@reactos.org>
Sun, 12 Jan 2014 21:23:01 +0000
(21:23 +0000)
Fix potential bug in ReadRegDwordKey.
CORE-7756 #resolve
svn path=/trunk/; revision=61594
reactos/dll/win32/msgina/msgina.c
patch
|
blob
|
history
diff --git
a/reactos/dll/win32/msgina/msgina.c
b/reactos/dll/win32/msgina/msgina.c
index
dd26272
..
e898dd9
100644
(file)
--- a/
reactos/dll/win32/msgina/msgina.c
+++ b/
reactos/dll/win32/msgina/msgina.c
@@
-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;