server: Notify parent key when subkey is created.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2015-11-09 12:42:41 +01:00 committed by Alexandre Julliard
parent deba2faf60
commit e0d51609a1
2 changed files with 2 additions and 1 deletions

View File

@ -1538,7 +1538,7 @@ static void test_notify(void)
ok(status == STATUS_SUCCESS, "NtCreateKey failed: 0x%08x\n", status);
status = pNtWaitForSingleObject(event, FALSE, &timeout);
todo_wine ok(status == STATUS_SUCCESS, "NtWaitForSingleObject returned %x\n", status);
ok(status == STATUS_SUCCESS, "NtWaitForSingleObject returned %x\n", status);
status = pNtDeleteKey(subkey);
ok(status == STATUS_SUCCESS, "NtDeleteSubkey failed: %x\n", status);

View File

@ -814,6 +814,7 @@ static struct key *create_key( struct key *key, const struct unicode_str *name,
free(key->class);
if (!(key->class = memdup( class->str, key->classlen ))) key->classlen = 0;
}
touch_key( key->parent, REG_NOTIFY_CHANGE_NAME );
grab_object( key );
return key;
}