https://git.reactos.org/?p=reactos.git;a=commitdiff;h=949e2a8cccbc788fda66f…
commit 949e2a8cccbc788fda66f2e5d3205dd343785ffa
Author: winesync <ros-dev(a)reactos.org>
AuthorDate: Sun Jan 16 20:41:28 2022 +0100
Commit: Thomas Csovcsity <thc.fr13nd(a)gmail.com>
CommitDate: Sun Jun 19 13:06:30 2022 +0200
[WINESYNC] reg/tests: Test whether a .reg file extension is required when exporting.
Signed-off-by: Hugh McMaster <hugh.mcmaster(a)outlook.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id cd03238dd0174382c503d7b6771e803d876a2fbf by Hugh McMaster
<hugh.mcmaster(a)outlook.com>
---
modules/rostests/winetests/reg/export.c | 5 +++++
sdk/tools/winesync/reg.cfg | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/modules/rostests/winetests/reg/export.c
b/modules/rostests/winetests/reg/export.c
index 2c7ba88fb59..5296ebb1e06 100644
--- a/modules/rostests/winetests/reg/export.c
+++ b/modules/rostests/winetests/reg/export.c
@@ -247,6 +247,11 @@ static void test_export(void)
ok(r == REG_EXIT_SUCCESS, "got exit code %d, expected 0\n", r);
ok(compare_export("file.reg", simple_test, 0), "compare_export()
failed\n");
+ /* Test whether a .reg file extension is required when exporting */
+ run_reg_exe("reg export HKEY_CURRENT_USER\\" KEY_BASE " foo /y",
&r);
+ ok(r == REG_EXIT_SUCCESS, "got exit code %d, expected 0\n", r);
+ ok(compare_export("foo", simple_test, 0), "compare_export()
failed\n");
+
/* Test registry export with a complex data structure */
add_key(hkey, "Subkey1", &subkey);
add_value(subkey, "Binary", REG_BINARY, "\x11\x22\x33\x44", 4);
diff --git a/sdk/tools/winesync/reg.cfg b/sdk/tools/winesync/reg.cfg
index 25cc2da3296..56cfb8cb875 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: 89251073c7b7a919ca7c3450d53744921ac2979c
+ wine: cd03238dd0174382c503d7b6771e803d876a2fbf