Commit df6c2a84 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

server: Mark the process as disconnected from desktop/winstation before closing its handles.

parent 5bee8b4e
......@@ -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);
......
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment