gdi32: Actually create the Wine fonts key if it doesn't exist.
This commit is contained in:
parent
c2da099e29
commit
42d372eb4a
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue