[USETUP] NT RTL thread functions use 'NULL' (instead of 'INVALID_HANDLE_VALUE' which...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Wed, 9 Aug 2017 20:43:02 +0000 (20:43 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Fri, 26 Oct 2018 00:16:05 +0000 (02:16 +0200)
svn path=/branches/setup_improvements/; revision=75519

base/setup/usetup/usetup.c

index 79b8982..d076a52 100644 (file)
@@ -938,10 +938,10 @@ SetupStartPage(PINPUT_RECORD Ir)
     RequiredPartitionDiskSpace = (ULONG)IntValue;
 
     /* Start the PnP thread */
     RequiredPartitionDiskSpace = (ULONG)IntValue;
 
     /* Start the PnP thread */
-    if (hPnpThread != INVALID_HANDLE_VALUE)
+    if (hPnpThread != NULL)
     {
         NtResumeThread(hPnpThread, NULL);
     {
         NtResumeThread(hPnpThread, NULL);
-        hPnpThread = INVALID_HANDLE_VALUE;
+        hPnpThread = NULL;
     }
 
     CheckUnattendedSetup();
     }
 
     CheckUnattendedSetup();
@@ -5184,7 +5184,7 @@ RunUSetup(VOID)
                                  &hPnpThread,
                                  NULL);
     if (!NT_SUCCESS(Status))
                                  &hPnpThread,
                                  NULL);
     if (!NT_SUCCESS(Status))
-        hPnpThread = INVALID_HANDLE_VALUE;
+        hPnpThread = NULL;
 
     if (!CONSOLE_Init())
     {
 
     if (!CONSOLE_Init())
     {