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

This commit is contained in:
Huw Davies 2006-12-20 22:33:28 +00:00 committed by Alexandre Julliard
parent c2da099e29
commit 42d372eb4a
1 changed files with 1 additions and 1 deletions

View File

@ -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,