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

This commit is contained in:
Mike McCormack 2006-05-14 17:11:54 +09:00 committed by Alexandre Julliard
parent bf8509d37c
commit 5fb6e0ef16
1 changed files with 2 additions and 1 deletions

View File

@ -1954,6 +1954,7 @@ DECL_HANDLER(set_registry_notification)
notify = find_notify( key, current->process, req->hkey );
if (notify)
{
if (notify->event)
release_object( notify->event );
grab_object( event );
notify->event = event;