Use GetSystemWindowsDirectory() instead of GetWindowsDirectory() (#22037)
This commit is contained in:
parent
86dd857447
commit
327fc9d183
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue