Commit 7763efa3 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

gdi32: Don't override FontSubstitutes on a DPI only change.

parent 9bc7d410
......@@ -2485,7 +2485,8 @@ static void update_codepage(void)
add_font_list(hkey, &nls_update_font_list[i], screen_dpi);
RegCloseKey(hkey);
}
if (!RegCreateKeyW( HKEY_LOCAL_MACHINE,
/* Only update these if the Codepage changed. */
if (strcmp( buf, cpbuf ) && !RegCreateKeyW( HKEY_LOCAL_MACHINE,
L"Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes", &hkey ))
{
RegSetValueExA(hkey, "MS Shell Dlg", 0, REG_SZ, (const BYTE *)nls_update_font_list[i].shelldlg,
......
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