From 0e88bfc51bcbffdcf99099d6a087e7d9607066e3 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Thu, 1 Dec 2005 22:08:48 +0000 Subject: [PATCH] fixed uninitialized variable warning svn path=/trunk/; revision=19812 --- reactos/lib/syssetup/wizard.c | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/reactos/lib/syssetup/wizard.c b/reactos/lib/syssetup/wizard.c index 0cf59a2183e..1a800abb006 100644 --- a/reactos/lib/syssetup/wizard.c +++ b/reactos/lib/syssetup/wizard.c @@ -1415,7 +1415,7 @@ RegistrationProc(LPVOID Parameter) { PREGISTRATIONDATA RegistrationData; REGISTRATIONNOTIFY RegistrationNotify; - DWORD LastError; + DWORD LastError = NO_ERROR; WCHAR UnknownError[84]; RegistrationData = (PREGISTRATIONDATA) Parameter; @@ -1424,23 +1424,19 @@ RegistrationProc(LPVOID Parameter) _SEH_TRY { - 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 + if (!SetupInstallFromInfSectionW(GetParent(RegistrationData->hwndDlg), + hSysSetupInf, + L"RegistrationPhase2", + SPINST_REGISTRY | + SPINST_REGISTERCALLBACKAWARE | + SPINST_REGSVR, + 0, + NULL, + 0, + RegistrationNotificationProc, + RegistrationData, + NULL, + NULL)) { LastError = GetLastError(); } -- 2.17.1