mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
Fix uninitialized variable
svn path=/trunk/; revision=19115
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user