mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 00:54:40 +00:00
Fix uninitialized variable
svn path=/trunk/; revision=19115
This commit is contained in:
parent
50b07becb6
commit
545848ca1c
1 changed files with 2 additions and 1 deletions
|
@ -933,10 +933,11 @@ SetupIsActive(VOID)
|
||||||
if (rc != ERROR_SUCCESS)
|
if (rc != ERROR_SUCCESS)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
|
size = sizeof(DWORD);
|
||||||
rc = RegQueryValueExW(hKey, L"SystemSetupInProgress", NULL, ®Type, (LPBYTE)&active, &size);
|
rc = RegQueryValueExW(hKey, L"SystemSetupInProgress", NULL, ®Type, (LPBYTE)&active, &size);
|
||||||
if (rc != ERROR_SUCCESS)
|
if (rc != ERROR_SUCCESS)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
if (regType != REG_DWORD)
|
if (regType != REG_DWORD || size != sizeof(DWORD))
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
ret = (active != 0);
|
ret = (active != 0);
|
||||||
|
|
Loading…
Reference in a new issue