fixed uninitialized variable warning Modified: trunk/reactos/lib/syssetup/wizard.c _____
Modified: trunk/reactos/lib/syssetup/wizard.c --- trunk/reactos/lib/syssetup/wizard.c 2005-12-01 21:38:13 UTC (rev 19811) +++ trunk/reactos/lib/syssetup/wizard.c 2005-12-01 22:08:48 UTC (rev 19812) @@ -1415,7 +1415,7 @@
{ PREGISTRATIONDATA RegistrationData; REGISTRATIONNOTIFY RegistrationNotify; - DWORD LastError; + DWORD LastError = NO_ERROR; WCHAR UnknownError[84];
RegistrationData = (PREGISTRATIONDATA) Parameter; @@ -1424,24 +1424,20 @@
_SEH_TRY { - if (SetupInstallFromInfSectionW(GetParent(RegistrationData->hwndDlg), - hSysSetupInf, - L"RegistrationPhase2", - SPINST_REGISTRY | - SPINST_REGISTERCALLBACKAWARE | - SPINST_REGSVR, - 0, - NULL, - 0, - RegistrationNotificationProc, - RegistrationData, - NULL, - NULL)) + if (!SetupInstallFromInfSectionW(GetParent(RegistrationData->hwndDlg), + hSysSetupInf, + L"RegistrationPhase2", + SPINST_REGISTRY | + SPINST_REGISTERCALLBACKAWARE | + SPINST_REGSVR, + 0, + NULL, + 0, + RegistrationNotificationProc, + RegistrationData, + NULL, + NULL)) { - LastError = NO_ERROR; - } - else - { LastError = GetLastError(); } }