Commit 14645b06 authored by Alexandre Julliard's avatar Alexandre Julliard

server: Don't return image information for terminating processes.

Fixes a test failure caused by 8eacd3e5. Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 39f77b25
......@@ -1503,7 +1503,10 @@ DECL_HANDLER(get_process_info)
reply->session_id = process->session_id;
reply->machine = process->machine;
if (get_reply_max_size())
set_reply_data( &process->image_info, min( sizeof(process->image_info), get_reply_max_size() ));
{
if (!process->running_threads) set_error( STATUS_PROCESS_IS_TERMINATING );
else set_reply_data( &process->image_info, min( sizeof(process->image_info), get_reply_max_size() ));
}
release_object( process );
}
}
......
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