From 541c10e66b38e2336ae4aebb8aec510162d9ac93 Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Mon, 15 Jun 2009 22:16:49 +0000 Subject: [PATCH] - TerminateProcess requires a valid handle - Should fix 2 kernel32' winetests svn path=/trunk/; revision=41420 --- reactos/dll/win32/kernel32/process/proc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/reactos/dll/win32/kernel32/process/proc.c b/reactos/dll/win32/kernel32/process/proc.c index bee512fbcf9..e116c296f51 100644 --- a/reactos/dll/win32/kernel32/process/proc.c +++ b/reactos/dll/win32/kernel32/process/proc.c @@ -605,6 +605,11 @@ TerminateProcess (HANDLE hProcess, { NTSTATUS Status; + if (hProcess == NULL) + { + return FALSE; + } + Status = NtTerminateProcess (hProcess, uExitCode); if (NT_SUCCESS(Status)) {