]> git.wh0rd.org Git - fontconfig.git/commitdiff
Bug 22037 - No Fonts installed on a default install on Windows Server 2003
authorBehdad Esfahbod <behdad@behdad.org>
Fri, 21 Aug 2009 17:41:41 +0000 (13:41 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Fri, 21 Aug 2009 17:41:41 +0000 (13:41 -0400)
Make it easy to install on older Windows

src/fcxml.c

index ef85a4f312b8404f73977c8449205148cc2d3936..840bdcad0007989ed1f675583ab234f2967e5fa3 100644 (file)
@@ -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");