projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50b07be
)
Fix uninitialized variable
author
Hervé Poussineau
<hpoussin@reactos.org>
Thu, 10 Nov 2005 08:47:43 +0000
(08:47 +0000)
committer
Hervé Poussineau
<hpoussin@reactos.org>
Thu, 10 Nov 2005 08:47:43 +0000
(08:47 +0000)
svn path=/trunk/; revision=19115
reactos/services/umpnpmgr/umpnpmgr.c
patch
|
blob
|
history
diff --git
a/reactos/services/umpnpmgr/umpnpmgr.c
b/reactos/services/umpnpmgr/umpnpmgr.c
index
d76a342
..
1791a4d
100644
(file)
--- a/
reactos/services/umpnpmgr/umpnpmgr.c
+++ b/
reactos/services/umpnpmgr/umpnpmgr.c
@@
-933,10
+933,11
@@
SetupIsActive(VOID)
if (rc != ERROR_SUCCESS)
goto cleanup;
+ size = sizeof(DWORD);
rc = RegQueryValueExW(hKey, L"SystemSetupInProgress", NULL, ®Type, (LPBYTE)&active, &size);
if (rc != ERROR_SUCCESS)
goto cleanup;
- if (regType != REG_DWORD)
+ if (regType != REG_DWORD
|| size != sizeof(DWORD)
)
goto cleanup;
ret = (active != 0);