Author: hbelusca
Date: Wed Aug  9 20:43:02 2017
New Revision: 75519

URL: http://svn.reactos.org/svn/reactos?rev=75519&view=rev
Log:
[USETUP]: NT RTL thread functions use 'NULL' (instead of 'INVALID_HANDLE_VALUE' 
which is a Win32 thing) for thread handles that are "invalid" / uninitialized.

Modified:
    branches/setup_improvements/base/setup/usetup/interface/usetup.c

Modified: branches/setup_improvements/base/setup/usetup/interface/usetup.c
URL: 
http://svn.reactos.org/svn/reactos/branches/setup_improvements/base/setup/usetup/interface/usetup.c?rev=75519&r1=75518&r2=75519&view=diff
==============================================================================
--- branches/setup_improvements/base/setup/usetup/interface/usetup.c    
[iso-8859-1] (original)
+++ branches/setup_improvements/base/setup/usetup/interface/usetup.c    
[iso-8859-1] Wed Aug  9 20:43:02 2017
@@ -629,10 +629,10 @@
     }
 
     /* Start the PnP thread */
-    if (hPnpThread != INVALID_HANDLE_VALUE)
+    if (hPnpThread != NULL)
     {
         NtResumeThread(hPnpThread, NULL);
-        hPnpThread = INVALID_HANDLE_VALUE;
+        hPnpThread = NULL;
     }
 
     CheckUnattendedSetup(&USetupData);
@@ -4605,7 +4605,7 @@
                                  &hPnpThread,
                                  NULL);
     if (!NT_SUCCESS(Status))
-        hPnpThread = INVALID_HANDLE_VALUE;
+        hPnpThread = NULL;
 
     if (!CONSOLE_Init())
     {


Reply via email to