https://git.reactos.org/?p=reactos.git;a=commitdiff;h=5b42e659cef066a312687…
commit 5b42e659cef066a3126872ff905b288a21e2f505
Author: winesync <ros-dev(a)reactos.org>
AuthorDate: Sun Jan 16 14:51:45 2022 +0100
Commit: Thomas Csovcsity <thc.fr13nd(a)gmail.com>
CommitDate: Sun Jun 19 13:06:27 2022 +0200
[WINESYNC] reg/tests: Check for key non-existence with verify_key_nonexist().
Signed-off-by: Hugh McMaster <hugh.mcmaster(a)outlook.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 597a12420be2bee4e69b9400a075ae4393863573 by Hugh McMaster
<hugh.mcmaster(a)outlook.com>
---
modules/rostests/winetests/reg/reg.c | 6 ++----
sdk/tools/winesync/reg.cfg | 2 +-
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/modules/rostests/winetests/reg/reg.c b/modules/rostests/winetests/reg/reg.c
index 489989f12a8..429de8164e6 100644
--- a/modules/rostests/winetests/reg/reg.c
+++ b/modules/rostests/winetests/reg/reg.c
@@ -249,13 +249,11 @@ static void test_add(void)
/* Test input key formats */
run_reg_exe("reg add \\HKCU\\" KEY_BASE "\\keytest0 /f",
&r);
ok(r == REG_EXIT_FAILURE, "got exit code %u\n", r);
- err = RegDeleteKeyA(HKEY_CURRENT_USER, KEY_BASE "\\keytest0");
- ok(err == ERROR_FILE_NOT_FOUND, "got exit code %d\n", err);
+ verify_key_nonexist(hkey, "keytest0");
run_reg_exe("reg add \\\\HKCU\\" KEY_BASE "\\keytest1 /f",
&r);
ok(r == REG_EXIT_FAILURE, "got exit code %u\n", r);
- err = RegDeleteKeyA(HKEY_CURRENT_USER, KEY_BASE "\\keytest1");
- ok(err == ERROR_FILE_NOT_FOUND, "got exit code %d\n", err);
+ verify_key_nonexist(hkey, "keytest1");
run_reg_exe("reg add HKCU\\" KEY_BASE "\\keytest2\\\\ /f",
&r);
ok(r == REG_EXIT_FAILURE || broken(r == REG_EXIT_SUCCESS /* WinXP */),
diff --git a/sdk/tools/winesync/reg.cfg b/sdk/tools/winesync/reg.cfg
index 6be9ff46c07..24654675142 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: e6e227f21de08c7ddfe3e48b3ceb2fef01b6c0a6
+ wine: 597a12420be2bee4e69b9400a075ae4393863573