mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-27 11:12:06 +00:00
Convert wchar_t*/wstring arguments to UTF-8 strings in CLogger messages.
This was SVN commit r16188.
This commit is contained in:
@@ -828,7 +828,7 @@ static std::vector<std::string> GetJSONData(const VfsPath& path)
|
||||
{
|
||||
// Some error reading directory
|
||||
wchar_t error[200];
|
||||
LOGERROR("Error reading directory '%s': %s", path.string8(), StatusDescription(ret, error, ARRAY_SIZE(error)));
|
||||
LOGERROR("Error reading directory '%s': %s", path.string8(), utf8_from_wstring(StatusDescription(ret, error, ARRAY_SIZE(error))));
|
||||
return std::vector<std::string>();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user