Author: janderwald
Date: Tue Jun 16 02:16:49 2009
New Revision: 41420
URL:
http://svn.reactos.org/svn/reactos?rev=41420&view=rev
Log:
- TerminateProcess requires a valid handle
- Should fix 2 kernel32' winetests
Modified:
trunk/reactos/dll/win32/kernel32/process/proc.c
Modified: trunk/reactos/dll/win32/kernel32/process/proc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/process…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/process/proc.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/process/proc.c [iso-8859-1] Tue Jun 16 02:16:49 2009
@@ -605,6 +605,11 @@
{
NTSTATUS Status;
+ if (hProcess == NULL)
+ {
+ return FALSE;
+ }
+
Status = NtTerminateProcess (hProcess, uExitCode);
if (NT_SUCCESS(Status))
{