server: Don't return image information for terminating processes.
Fixes a test failure caused by 8eacd3e507
.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
39f77b25aa
commit
14645b06a7
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue