diff --git a/dlls/kernel32/tests/process.c b/dlls/kernel32/tests/process.c index 64e333e1646..9d3e983d50e 100644 --- a/dlls/kernel32/tests/process.c +++ b/dlls/kernel32/tests/process.c @@ -1957,7 +1957,6 @@ static void test_TerminateProcess(void) SetLastError(0xdeadbeef); ret = TerminateProcess(pi.hProcess, 0); -todo_wine ok(ret, "TerminateProcess error %u\n", GetLastError()); CloseHandle(pi.hProcess); diff --git a/server/process.c b/server/process.c index 61d9d17b44e..f1046c081b0 100644 --- a/server/process.c +++ b/server/process.c @@ -628,9 +628,9 @@ static void process_killed( struct process *process ) assert( list_empty( &process->thread_list )); process->end_time = current_time; if (!process->is_system) close_process_desktop( process ); - close_process_handles( process ); process->winstation = 0; process->desktop = 0; + close_process_handles( process ); if (process->idle_event) { release_object( process->idle_event );