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

Make it easy to install on older Windows
This commit is contained in:
Behdad Esfahbod 2009-08-21 13:41:41 -04:00
parent 8b1ceef0b7
commit f33a23133e
1 changed files with 4 additions and 0 deletions

View 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");