https://git.reactos.org/?p=reactos.git;a=commitdiff;h=74be659c8b8650faf75f55...
commit 74be659c8b8650faf75f55535e62d9ac3063873a Author: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org AuthorDate: Wed Aug 9 20:43:02 2017 +0000 Commit: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org CommitDate: Fri Oct 26 02:16:05 2018 +0200
[USETUP] NT RTL thread functions use 'NULL' (instead of 'INVALID_HANDLE_VALUE' which is a Win32 thing) for thread handles that are "invalid" / uninitialized.
svn path=/branches/setup_improvements/; revision=75519 --- base/setup/usetup/usetup.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/base/setup/usetup/usetup.c b/base/setup/usetup/usetup.c index 79b8982430..d076a52475 100644 --- a/base/setup/usetup/usetup.c +++ b/base/setup/usetup/usetup.c @@ -938,10 +938,10 @@ SetupStartPage(PINPUT_RECORD Ir) RequiredPartitionDiskSpace = (ULONG)IntValue;
/* Start the PnP thread */ - if (hPnpThread != INVALID_HANDLE_VALUE) + if (hPnpThread != NULL) { NtResumeThread(hPnpThread, NULL); - hPnpThread = INVALID_HANDLE_VALUE; + hPnpThread = NULL; }
CheckUnattendedSetup(); @@ -5184,7 +5184,7 @@ RunUSetup(VOID) &hPnpThread, NULL); if (!NT_SUCCESS(Status)) - hPnpThread = INVALID_HANDLE_VALUE; + hPnpThread = NULL;
if (!CONSOLE_Init()) {