https://git.reactos.org/?p=reactos.git;a=commitdiff;h=fb0b52255cd52afcb9963…
commit fb0b52255cd52afcb9963c94a37f27e175e3ecc4
Author: winesync <ros-dev(a)reactos.org>
AuthorDate: Sun Mar 13 19:05:08 2022 +0100
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Sun Mar 20 19:28:25 2022 +0100
[WINESYNC] msi/tests: Avoid test failure when running as an unprivileged user.
Signed-off-by: Hans Leidekker <hans(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 90422f9bb59d4a2e34ad9cffbb4f04b896ab7235 by Hans Leidekker
<hans(a)codeweavers.com>
---
modules/rostests/winetests/msi/package.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/rostests/winetests/msi/package.c
b/modules/rostests/winetests/msi/package.c
index 3c547bf04a0..3b7b11d81e4 100644
--- a/modules/rostests/winetests/msi/package.c
+++ b/modules/rostests/winetests/msi/package.c
@@ -4054,7 +4054,6 @@ static void test_appsearch(void)
r = RegCreateKeyExA(HKEY_LOCAL_MACHINE, "Software\\Winetest_msi", 0, NULL,
0, KEY_ALL_ACCESS|KEY_WOW64_32KEY,
NULL, &hkey, NULL);
- ok( r == ERROR_SUCCESS, "Could not create key: %d.\n", r );
if (r == ERROR_ACCESS_DENIED)
{
skip("insufficient rights\n");
@@ -4063,6 +4062,7 @@ static void test_appsearch(void)
DeleteFileA(msifile);
return;
}
+ ok( r == ERROR_SUCCESS, "Could not create key: %d.\n", r );
r = RegSetValueExA(hkey, NULL, 0, REG_SZ, (const BYTE
*)"c:\\windows\\system32\\notepad.exe",
sizeof("c:\\windows\\system32\\notepad.exe"));