[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
This commit is contained in:
Hermès Bélusca-Maïto 2017-08-09 20:43:02 +00:00
parent 397faf62bf
commit 74be659c8b
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -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())
{