Commit f33a2313 authored by Behdad Esfahbod's avatar Behdad Esfahbod

Bug 22037 - No Fonts installed on a default install on Windows Server 2003

Make it easy to install on older Windows
parent 8b1ceef0
......@@ -2087,7 +2087,11 @@ FcEndElement(void *userData, const XML_Char *name)
{
int rc;
data = buffer;
#if _WIN32_WINNT >= 0x0500
rc = GetSystemWindowsDirectory (buffer, sizeof (buffer) - 20);
#else
rc = GetWindowsDirectory (buffer, sizeof (buffer) - 20);
#endif
if (rc == 0 || rc > sizeof (buffer) - 20)
{
FcConfigMessage (parse, FcSevereError, "GetSystemWindowsDirectory failed");
......
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