[WINESYNC] reg/tests: Use 'hkey' in 'query' tests for consistency with other reg.exe tests.

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>

wine commit id c573fce35b80d60b38b720a82fee53941c7490ea by Hugh McMaster <hugh.mcmaster@outlook.com>
This commit is contained in:
winesync 2022-01-16 21:08:23 +01:00 committed by Thomas Csovcsity
parent 2535ff3f1b
commit d552b44ff8
2 changed files with 9 additions and 9 deletions

View file

@ -149,7 +149,7 @@ static void test_query(void)
" Wine REG_SZ Second instance\r\n\r\n";
DWORD r, dword = 0x123;
HKEY key, subkey;
HKEY hkey, subkey;
BYTE buf[512];
delete_tree(HKEY_CURRENT_USER, KEY_BASE);
@ -172,9 +172,9 @@ static void test_query(void)
ok(r == REG_EXIT_FAILURE, "got exit code %d, expected 1\n", r);
/* Create a test key */
add_key(HKEY_CURRENT_USER, KEY_BASE, &key);
add_value(key, "Test1", REG_SZ, "Hello, World", 13);
add_value(key, "Test2", REG_DWORD, &dword, sizeof(dword));
add_key(HKEY_CURRENT_USER, KEY_BASE, &hkey);
add_value(hkey, "Test1", REG_SZ, "Hello, World", 13);
add_value(hkey, "Test2", REG_DWORD, &dword, sizeof(dword));
run_reg_exe("reg query HKCU\\" KEY_BASE " /v", &r);
ok(r == REG_EXIT_FAILURE, "got exit code %d, expected 1\n", r);
@ -206,10 +206,10 @@ static void test_query(void)
run_reg_exe("reg query HKCU\\" KEY_BASE " /v Test2", &r);
ok(r == REG_EXIT_SUCCESS, "got exit code %d, expected 0\n", r);
add_value(key, "Wine", REG_SZ, "First instance", 15);
add_value(hkey, "Wine", REG_SZ, "First instance", 15);
/* Create a test subkey */
add_key(key, "subkey", &subkey);
add_key(hkey, "subkey", &subkey);
read_reg_output("reg query HKCU\\" KEY_BASE, buf, sizeof(buf), &r);
ok(r == REG_EXIT_SUCCESS, "got exit code %d, expected 0\n", r);
@ -246,10 +246,10 @@ static void test_query(void)
"got exit code %d, expected 0\n", r);
compare_query(buf, test7, TRUE, 0);
add_value(key, NULL, REG_SZ, "Empty", 6);
add_value(hkey, NULL, REG_SZ, "Empty", 6);
add_value(subkey, NULL, REG_SZ, "Empty", 6);
close_key(subkey);
close_key(key);
close_key(hkey);
run_reg_exe("reg query HKCU\\" KEY_BASE "\\subkey /ve", &r);
ok(r == REG_EXIT_SUCCESS, "got exit code %d, expected 0\n", r);

View file

@ -4,4 +4,4 @@ directories:
files:
programs/reg/resource.h: base/applications/cmdutils/reg/resource.h
tags:
wine: 9752dfeea82c48e2230bacbf9db9564d5562de02
wine: c573fce35b80d60b38b720a82fee53941c7490ea