msi/tests: Fix some failures on Wow64.
authorGreg Geldorp <ggeldorp@vmware.com>
Mon, 3 Jan 2011 00:06:08 +0000 (01:06 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 3 Jan 2011 13:57:29 +0000 (14:57 +0100)
dlls/msi/tests/action.c

index 1db78452abfe596f304c880228bbdb7c28bd9311..86abecca69abbca58ea64f71bbd903c398fd85f0 100644 (file)
@@ -3428,6 +3428,8 @@ static void test_publish(void)
     else
     {
         res = RegOpenKeyExA(uninstall, prodcode, 0, access, &prodkey);
+        if (is_wow64 && res == ERROR_FILE_NOT_FOUND) /* XP - Vista, Wow64 */
+            res = RegOpenKeyExA(uninstall, prodcode, 0, KEY_ALL_ACCESS, &prodkey);
         ok(res == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", res);
     }