Use GetSystemWindowsDirectory() instead of GetWindowsDirectory() (#22037)

This commit is contained in:
Behdad Esfahbod 2009-07-21 15:41:47 -04:00
parent 86dd857447
commit 327fc9d183
1 changed files with 3 additions and 3 deletions

View File

@ -2099,10 +2099,10 @@ FcEndElement(void *userData, const XML_Char *name)
break; break;
} }
FcMemAlloc (FC_MEM_STRING, 1000); FcMemAlloc (FC_MEM_STRING, 1000);
rc = GetWindowsDirectory (data, 800); rc = GetSystemWindowsDirectory (data, 800);
if (rc == 0 || rc > 800) if (rc == 0 || rc > 800)
{ {
FcConfigMessage (parse, FcSevereError, "GetWindowsDirectory failed"); FcConfigMessage (parse, FcSevereError, "GetSystemWindowsDirectory failed");
FcStrFree (data); FcStrFree (data);
break; break;
} }
@ -2142,7 +2142,7 @@ FcEndElement(void *userData, const XML_Char *name)
rc = GetTempPath (800, data); rc = GetTempPath (800, data);
if (rc == 0 || rc > 800) if (rc == 0 || rc > 800)
{ {
FcConfigMessage (parse, FcSevereError, "GetWindowsDirectory failed"); FcConfigMessage (parse, FcSevereError, "GetTempPath failed");
FcStrFree (data); FcStrFree (data);
break; break;
} }