Commit 5fb6e0ef authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

server: Avoid a crash if a registry notify event has been set already.

parent bf8509d3
...@@ -1954,7 +1954,8 @@ DECL_HANDLER(set_registry_notification) ...@@ -1954,7 +1954,8 @@ DECL_HANDLER(set_registry_notification)
notify = find_notify( key, current->process, req->hkey ); notify = find_notify( key, current->process, req->hkey );
if (notify) if (notify)
{ {
release_object( notify->event ); if (notify->event)
release_object( notify->event );
grab_object( event ); grab_object( event );
notify->event = event; notify->event = 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