From 40d62f3c5bd37411b35c3faea4bc8311d18a11f3 Mon Sep 17 00:00:00 2001 From: winesync Date: Sun, 16 Jan 2022 21:15:48 +0100 Subject: [PATCH] [WINESYNC] reg/tests: Verify that only the (Default) value is overwritten when neither /v nor /ve is specified. Signed-off-by: Hugh McMaster Signed-off-by: Alexandre Julliard wine commit id 8203c5db0248d38f06af55411ac4f4c89976fad2 by Hugh McMaster --- modules/rostests/winetests/reg/add.c | 9 +++++++++ sdk/tools/winesync/reg.cfg | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/rostests/winetests/reg/add.c b/modules/rostests/winetests/reg/add.c index 6973eefd892..fdd09c885bc 100644 --- a/modules/rostests/winetests/reg/add.c +++ b/modules/rostests/winetests/reg/add.c @@ -384,6 +384,15 @@ static void test_add(void) verify_reg(hkey, "Test2", REG_DWORD, &dword, sizeof(dword), 0); todo_wine verify_reg(hkey, NULL, REG_SZ, "", 1, 0); + run_reg_exe("reg add HKCU\\" KEY_BASE " /t REG_NONE /d Test /f", &r); + ok(r == REG_EXIT_SUCCESS, "got exit code %d, expected 0\n", r); + + verify_key(HKEY_CURRENT_USER, KEY_BASE); + verify_key(hkey, "Subkey"); + verify_reg(hkey, "Test1", REG_SZ, "Value1", 7, 0); + verify_reg(hkey, "Test2", REG_DWORD, &dword, sizeof(dword), 0); + verify_reg(hkey, NULL, REG_NONE, "T\0e\0s\0t\0\0", 10, 0); + close_key(hkey); delete_tree(HKEY_CURRENT_USER, KEY_BASE); } diff --git a/sdk/tools/winesync/reg.cfg b/sdk/tools/winesync/reg.cfg index 7a1a3cce2db..a1273c41652 100644 --- a/sdk/tools/winesync/reg.cfg +++ b/sdk/tools/winesync/reg.cfg @@ -4,4 +4,4 @@ directories: files: programs/reg/resource.h: base/applications/cmdutils/reg/resource.h tags: - wine: 1ce21dbb5f2eed468c3748a2de1f25744e10e04c + wine: 8203c5db0248d38f06af55411ac4f4c89976fad2