From 545848ca1c6ea553e0845bf20a4a545a15b1b2a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Thu, 10 Nov 2005 08:47:43 +0000 Subject: [PATCH] Fix uninitialized variable svn path=/trunk/; revision=19115 --- reactos/services/umpnpmgr/umpnpmgr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/services/umpnpmgr/umpnpmgr.c b/reactos/services/umpnpmgr/umpnpmgr.c index d76a342cb1e..1791a4d26d9 100644 --- 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);