From 612461644dcb9db64f565939b56886eacfe40b80 Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Wed, 27 Apr 2005 21:57:24 +0000 Subject: [PATCH] Fixed the check for a created first thread. svn path=/trunk/; revision=14836 --- reactos/lib/kernel32/process/create.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/lib/kernel32/process/create.c b/reactos/lib/kernel32/process/create.c index 596d14cfd57..29121b4b4b3 100644 --- a/reactos/lib/kernel32/process/create.c +++ b/reactos/lib/kernel32/process/create.c @@ -1398,7 +1398,7 @@ CreateProcessW(LPCWSTR lpApplicationName, (PVOID)((ULONG_PTR)ImageBaseAddress + Sii.EntryPoint), dwCreationFlags, &lpProcessInformation->dwThreadId); - if (hThread == INVALID_HANDLE_VALUE) + if (hThread == NULL) { return FALSE; }