projects
/
fontconfig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b1ceef
)
Bug 22037 - No Fonts installed on a default install on Windows Server 2003
author
Behdad Esfahbod
<behdad@behdad.org>
Fri, 21 Aug 2009 17:41:41 +0000
(13:41 -0400)
committer
Behdad 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
patch
|
blob
|
history
diff --git
a/src/fcxml.c
b/src/fcxml.c
index ef85a4f312b8404f73977c8449205148cc2d3936..840bdcad0007989ed1f675583ab234f2967e5fa3 100644
(file)
--- 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");