Fix uninitialized variable
Modified: trunk/reactos/services/umpnpmgr/umpnpmgr.c

Modified: trunk/reactos/services/umpnpmgr/umpnpmgr.c
--- trunk/reactos/services/umpnpmgr/umpnpmgr.c	2005-11-10 08:37:40 UTC (rev 19114)
+++ trunk/reactos/services/umpnpmgr/umpnpmgr.c	2005-11-10 08:47:43 UTC (rev 19115)
@@ -933,10 +933,11 @@
     if (rc != ERROR_SUCCESS)
         goto cleanup;
 
+    size = sizeof(DWORD);
     rc = RegQueryValueExW(hKey, L"SystemSetupInProgress", NULL, &regType, (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);