https://git.reactos.org/?p=reactos.git;a=commitdiff;h=a1330dea51475c1fea47e…
commit a1330dea51475c1fea47e4945f831e65735c0aaa
Author: winesync <ros-dev(a)reactos.org>
AuthorDate: Sun Jan 16 21:06:06 2022 +0100
Commit: Thomas Csovcsity <thc.fr13nd(a)gmail.com>
CommitDate: Sun Jun 19 13:06:32 2022 +0200
[WINESYNC] reg/tests: Add tests for trailing backslashes after the system key.
Signed-off-by: Hugh McMaster <hugh.mcmaster(a)outlook.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id a47829e13d639831ab9f36ba4592b840259e6f80 by Hugh McMaster
<hugh.mcmaster(a)outlook.com>
---
modules/rostests/winetests/reg/add.c | 8 ++++++++
sdk/tools/winesync/reg.cfg | 2 +-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/modules/rostests/winetests/reg/add.c b/modules/rostests/winetests/reg/add.c
index e1e7a478502..2c5a8f34ce2 100644
--- a/modules/rostests/winetests/reg/add.c
+++ b/modules/rostests/winetests/reg/add.c
@@ -268,6 +268,14 @@ static void test_add(void)
verify_key(hkey, "keytest4");
delete_key(hkey, "keytest4");
+ run_reg_exe("reg add HKCU\\ /v Value1 /t REG_SZ /d foo /f", &r);
+ todo_wine ok(r == REG_EXIT_FAILURE, "got exit code %d, expected 1\n", r);
+ todo_wine verify_reg_nonexist(HKEY_CURRENT_USER, "Value1");
+
+ run_reg_exe("reg add HKEY_CURRENT_USER\\ /v Value2 /t REG_SZ /d bar /f",
&r);
+ todo_wine ok(r == REG_EXIT_FAILURE, "got exit code %d, expected 1\n", r);
+ todo_wine verify_reg_nonexist(HKEY_CURRENT_USER, "Value2");
+
/* REG_NONE */
run_reg_exe("reg add HKCU\\" KEY_BASE " /v none0 /d deadbeef /t
REG_NONE /f", &r);
ok(r == REG_EXIT_SUCCESS, "got exit code %d, expected 0\n", r);
diff --git a/sdk/tools/winesync/reg.cfg b/sdk/tools/winesync/reg.cfg
index 545c4d312fb..540e93ecac6 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: fa24d458f5d9663fbefb1eb7406961b1c6ec3def
+ wine: a47829e13d639831ab9f36ba4592b840259e6f80