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:
parent
8b1ceef0b7
commit
f33a23133e
|
@ -2087,7 +2087,11 @@ FcEndElement(void *userData, const XML_Char *name)
|
||||||
{
|
{
|
||||||
int rc;
|
int rc;
|
||||||
data = buffer;
|
data = buffer;
|
||||||
|
#if _WIN32_WINNT >= 0x0500
|
||||||
rc = GetSystemWindowsDirectory (buffer, sizeof (buffer) - 20);
|
rc = GetSystemWindowsDirectory (buffer, sizeof (buffer) - 20);
|
||||||
|
#else
|
||||||
|
rc = GetWindowsDirectory (buffer, sizeof (buffer) - 20);
|
||||||
|
#endif
|
||||||
if (rc == 0 || rc > sizeof (buffer) - 20)
|
if (rc == 0 || rc > sizeof (buffer) - 20)
|
||||||
{
|
{
|
||||||
FcConfigMessage (parse, FcSevereError, "GetSystemWindowsDirectory failed");
|
FcConfigMessage (parse, FcSevereError, "GetSystemWindowsDirectory failed");
|
||||||
|
|
Loading…
Reference in New Issue