server: Avoid a crash if a registry notify event has been set already.
This commit is contained in:
parent
bf8509d37c
commit
5fb6e0ef16
|
@ -1954,6 +1954,7 @@ 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)
|
||||||
{
|
{
|
||||||
|
if (notify->event)
|
||||||
release_object( notify->event );
|
release_object( notify->event );
|
||||||
grab_object( event );
|
grab_object( event );
|
||||||
notify->event = event;
|
notify->event = event;
|
||||||
|
|
Loading…
Reference in New Issue