[PATCH 3/3] Fix a test failure on Win9x/WinMe

Paul Vriens Paul.Vriens.Wine at gmail.com
Fri Feb 12 08:20:10 CST 2010


---
 dlls/msi/tests/install.c |   18 ++++--------------
 1 files changed, 4 insertions(+), 14 deletions(-)

diff --git a/dlls/msi/tests/install.c b/dlls/msi/tests/install.c
index de826c3..c58e0af 100644
--- a/dlls/msi/tests/install.c
+++ b/dlls/msi/tests/install.c
@@ -7970,18 +7970,8 @@ static void test_self_registration(void)
 
 static void test_register_font(void)
 {
-    static const WCHAR regfont1[] =
-        {'S','o','f','t','w','a','r','e','\\',
-         'M','i','c','r','o','s','o','f','t','\\',
-         'W','i','n','d','o','w','s',' ','N','T','\\',
-         'C','u','r','r','e','n','t','V','e','r','s','i','o','n','\\',
-         'F','o','n','t','s',0};
-    static const WCHAR regfont2[] =
-        {'S','o','f','t','w','a','r','e','\\',
-         'M','i','c','r','o','s','o','f','t','\\',
-         'W','i','n','d','o','w','s','\\',
-         'C','u','r','r','e','n','t','V','e','r','s','i','o','n','\\',
-         'F','o','n','t','s',0};
+    static const char regfont1[] = "Software\\Microsoft\\Windows NT\\CurrentVersion\\Fonts";
+    static const char regfont2[] = "Software\\Microsoft\\Windows\\CurrentVersion\\Fonts";
     LONG ret;
     HKEY key;
     UINT r;
@@ -7995,9 +7985,9 @@ static void test_register_font(void)
     r = MsiInstallProductA(msifile, NULL);
     ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %u\n", r);
 
-    ret = RegCreateKeyW(HKEY_LOCAL_MACHINE, regfont1, &key);
+    ret = RegOpenKeyA(HKEY_LOCAL_MACHINE, regfont1, &key);
     if (ret)
-        ret = RegCreateKeyW(HKEY_LOCAL_MACHINE, regfont2, &key);
+        RegOpenKeyA(HKEY_LOCAL_MACHINE, regfont2, &key);
 
     ret = RegQueryValueExA(key, "msi test font", NULL, NULL, NULL, NULL);
     ok(ret != ERROR_FILE_NOT_FOUND, "unexpected result %d\n", ret);
-- 
1.6.2.5


--------------030909090206060509080004--



More information about the wine-patches mailing list