From 965dee67c1e48d80f0e6c77d63c28b6bd2c6ab4d Mon Sep 17 00:00:00 2001 From: Hugh McMaster Date: Mon, 22 Feb 2016 20:29:20 +1100 Subject: [PATCH] reg/tests: Add a test for REG_NONE with no data argument. Signed-off-by: Hugh McMaster Signed-off-by: Alexandre Julliard --- programs/reg/tests/reg.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/programs/reg/tests/reg.c b/programs/reg/tests/reg.c index 2c71b5c74da..db3b5a2924c 100644 --- a/programs/reg/tests/reg.c +++ b/programs/reg/tests/reg.c @@ -145,6 +145,10 @@ static void test_add(void) ok(r == REG_EXIT_SUCCESS, "got exit code %d\n", r); verify_reg(hkey, "none0", REG_NONE, "d\0e\0a\0d\0b\0e\0e\0f\0\0", 18, 0); + run_reg_exe("reg add HKCU\\" KEY_BASE " /v none1 /t REG_NONE /f", &r); + ok(r == REG_EXIT_SUCCESS, "got exit code %u, expected 0\n", r); + verify_reg(hkey, "none1", REG_NONE, "\0", 2, TODO_REG_SIZE); + /* REG_SZ */ run_reg_exe("reg add HKCU\\" KEY_BASE " /d WineTest /f", &r); ok(r == REG_EXIT_SUCCESS || broken(r == REG_EXIT_FAILURE /* WinXP */),