server: Notify parents of registry value changes.

Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Daniel Lehman 2018-05-03 11:49:53 -07:00 committed by Alexandre Julliard
parent 8dee2df662
commit 1353d02904
2 changed files with 2 additions and 2 deletions

View File

@ -3525,7 +3525,7 @@ static void test_RegNotifyChangeKeyValue(void)
ret = RegSetValueA(subsubkey, NULL, REG_SZ, "SubSubKeyValue", 0);
ok(ret == ERROR_SUCCESS, "expected ERROR_SUCCESS, got %d\n", ret);
dwret = WaitForSingleObject(event, 0);
todo_wine ok(dwret == WAIT_OBJECT_0, "expected WAIT_OBJECT_0, got %u\n", dwret);
ok(dwret == WAIT_OBJECT_0, "expected WAIT_OBJECT_0, got %u\n", dwret);
/* don't watch deeper values */
RegCloseKey(key);

View File

@ -548,7 +548,7 @@ static void touch_key( struct key *key, unsigned int change )
/* do notifications */
check_notify( key, change, 1 );
for ( k = key->parent; k; k = k->parent )
check_notify( k, change & ~REG_NOTIFY_CHANGE_LAST_SET, 0 );
check_notify( k, change, 0 );
}
/* try to grow the array of subkeys; return 1 if OK, 0 on error */