server: Remove limitation for waiting on idle_event of the current process.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
This commit is contained in:
Dmitry Timoshkov 2024-06-04 16:17:24 +03:00 committed by Alexandre Julliard
parent 5ae8bf3d93
commit c4c30d4615

View file

@ -1686,7 +1686,7 @@ DECL_HANDLER(get_process_idle_event)
reply->event = 0;
if ((process = get_process_from_handle( req->handle, PROCESS_QUERY_INFORMATION )))
{
if (process->idle_event && process != current->process)
if (process->idle_event)
reply->event = alloc_handle( current->process, process->idle_event,
EVENT_ALL_ACCESS, 0 );
release_object( process );