server: Avoid a crash if a registry notify event has been set already.
This commit is contained in:
parent
bf8509d37c
commit
5fb6e0ef16
|
@ -1954,7 +1954,8 @@ DECL_HANDLER(set_registry_notification)
|
|||
notify = find_notify( key, current->process, req->hkey );
|
||||
if (notify)
|
||||
{
|
||||
release_object( notify->event );
|
||||
if (notify->event)
|
||||
release_object( notify->event );
|
||||
grab_object( event );
|
||||
notify->event = event;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue