]> git.wh0rd.org Git - fontconfig.git/commitdiff
Use GetSystemWindowsDirectory() instead of GetWindowsDirectory() (#22037)
authorBehdad Esfahbod <behdad@behdad.org>
Tue, 21 Jul 2009 19:41:47 +0000 (15:41 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Tue, 21 Jul 2009 19:41:47 +0000 (15:41 -0400)
src/fcxml.c

index 9713e6be3246a71fc2a72490f3b2bab771a065ed..9dc64e237fae74fb2e406f3bca18993b72e6ee87 100644 (file)
@@ -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;
            }