Commit 42d372eb authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

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

parent c2da099e
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment