Commit deba2faf authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

server: Reset event in set_registry_notification.

parent 7d66a01f
......@@ -1520,7 +1520,7 @@ static void test_notify(void)
status = pNtOpenKey(&key, KEY_ALL_ACCESS, &attr);
ok(status == STATUS_SUCCESS, "NtOpenKey Failed: 0x%08x\n", status);
event = CreateEventW(NULL, FALSE, FALSE, NULL);
event = CreateEventW(NULL, FALSE, TRUE, NULL);
ok(event != NULL, "CreateEvent failed: %u\n", GetLastError());
status = pNtNotifyChangeKey(key, event, NULL, NULL, &iosb, REG_NOTIFY_CHANGE_NAME, FALSE, NULL, 0, TRUE);
......
......@@ -2290,7 +2290,10 @@ DECL_HANDLER(set_registry_notification)
}
}
if (notify)
{
reset_event( event );
set_error( STATUS_PENDING );
}
release_object( event );
}
release_object( key );
......
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