From f33a23133ecbcc981745051f7c34d96b33b57447 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 21 Aug 2009 13:41:41 -0400 Subject: [PATCH] Bug 22037 - No Fonts installed on a default install on Windows Server 2003 Make it easy to install on older Windows --- src/fcxml.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/fcxml.c b/src/fcxml.c index ef85a4f..840bdca 100644 --- a/src/fcxml.c +++ b/src/fcxml.c @@ -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");