Huw Davies : gdi32: Actually create the Wine fonts key if it doesn't exist.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Dec 21 10:36:28 CST 2006


Module: wine
Branch: master
Commit: 42d372eb4a4dc5b8d41eecff9fb95b17b539ddc6
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=42d372eb4a4dc5b8d41eecff9fb95b17b539ddc6

Author: Huw Davies <huw at codeweavers.com>
Date:   Wed Dec 20 22:33:28 2006 +0000

gdi32: Actually create the Wine fonts key if it doesn't exist.

---

 dlls/gdi32/freetype.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
index 86d3455..84daf4f 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -1575,7 +1575,7 @@ static void update_font_info(void)
     HKEY hkey = 0;
     UINT i, ansi_cp = 0, oem_cp = 0;
 
-    if (RegOpenKeyA(HKEY_CURRENT_USER, "Software\\Wine\\Fonts", &hkey) != ERROR_SUCCESS)
+    if (RegCreateKeyExA(HKEY_CURRENT_USER, "Software\\Wine\\Fonts", 0, NULL, 0, KEY_ALL_ACCESS, NULL, &hkey, NULL) != ERROR_SUCCESS)
         return;
 
     GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_IDEFAULTANSICODEPAGE|LOCALE_RETURN_NUMBER|LOCALE_NOUSEROVERRIDE,




More information about the wine-cvs mailing list