https://git.reactos.org/?p=reactos.git;a=commitdiff;h=1e0e137f1406f693dd8478...
commit 1e0e137f1406f693dd84784edf3fe718fe95b032 Author: winesync ros-dev@reactos.org AuthorDate: Sun Jan 16 20:10:04 2022 +0100 Commit: Thomas Csovcsity thc.fr13nd@gmail.com CommitDate: Sun Jun 19 13:06:29 2022 +0200
[WINESYNC] reg/tests: Add some tests for strings containing the characters backslash zero.
Signed-off-by: Hugh McMaster hugh.mcmaster@outlook.com Signed-off-by: Alexandre Julliard julliard@winehq.org
wine commit id c5b7f04eea2d88ce8b2192168d0cb9dba340551f by Hugh McMaster hugh.mcmaster@outlook.com --- modules/rostests/winetests/reg/add.c | 12 ++++++++++++ sdk/tools/winesync/reg.cfg | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/modules/rostests/winetests/reg/add.c b/modules/rostests/winetests/reg/add.c index c91d9d9b9b8..17c89b4b692a 100644 --- a/modules/rostests/winetests/reg/add.c +++ b/modules/rostests/winetests/reg/add.c @@ -318,6 +318,18 @@ static void test_add(void) ok(r == REG_EXIT_SUCCESS, "got exit code %d, expected 0\n", r); verify_reg(hkey, "test3", REG_SZ, "", 1, 0);
+ run_reg_exe("reg add HKCU\" KEY_BASE " /v string\04 /t REG_SZ /d "Value" /f", &r); + ok(r == REG_EXIT_SUCCESS, "got exit code %u, expected 0\n", r); + verify_reg(hkey, "string\04", REG_SZ, "Value", 6, 0); + + run_reg_exe("reg add HKCU\" KEY_BASE " /v string5 /t REG_SZ /d "foo\0bar" /f", &r); + ok(r == REG_EXIT_SUCCESS, "got exit code %u, expected 0\n", r); + verify_reg(hkey, "string5", REG_SZ, "foo\0bar", 9, 0); + + run_reg_exe("reg add HKCU\" KEY_BASE " /v \0 /t REG_SZ /d "Value" /f", &r); + ok(r == REG_EXIT_SUCCESS, "got exit code %u, expected 0\n", r); + verify_reg(hkey, "\0", REG_SZ, "Value", 6, 0); + /* REG_EXPAND_SZ */ run_reg_exe("reg add HKCU\" KEY_BASE " /v expand0 /t REG_EXpand_sz /d "dead%PATH%beef" /f", &r); ok(r == REG_EXIT_SUCCESS, "got exit code %u\n", r); diff --git a/sdk/tools/winesync/reg.cfg b/sdk/tools/winesync/reg.cfg index f861387e3bf..41af7ddb019 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: f5c24e2c341f872c8ed45c347b2fb357f9cedd7e + wine: c5b7f04eea2d88ce8b2192168d0cb9dba340551f