From: Behdad Esfahbod Date: Tue, 21 Jul 2009 19:41:47 +0000 (-0400) Subject: Use GetSystemWindowsDirectory() instead of GetWindowsDirectory() (#22037) X-Git-Tag: 2.7.1~10 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=327fc9d183ba193c307d0ecaec8ad1f4e6ca1330;p=fontconfig.git Use GetSystemWindowsDirectory() instead of GetWindowsDirectory() (#22037) --- diff --git a/src/fcxml.c b/src/fcxml.c index 9713e6b..9dc64e2 100644 --- a/src/fcxml.c +++ b/src/fcxml.c @@ -2099,10 +2099,10 @@ FcEndElement(void *userData, const XML_Char *name) break; } FcMemAlloc (FC_MEM_STRING, 1000); - rc = GetWindowsDirectory (data, 800); + rc = GetSystemWindowsDirectory (data, 800); if (rc == 0 || rc > 800) { - FcConfigMessage (parse, FcSevereError, "GetWindowsDirectory failed"); + FcConfigMessage (parse, FcSevereError, "GetSystemWindowsDirectory failed"); FcStrFree (data); break; } @@ -2142,7 +2142,7 @@ FcEndElement(void *userData, const XML_Char *name) rc = GetTempPath (800, data); if (rc == 0 || rc > 800) { - FcConfigMessage (parse, FcSevereError, "GetWindowsDirectory failed"); + FcConfigMessage (parse, FcSevereError, "GetTempPath failed"); FcStrFree (data); break; }