Fix MSVC build.

This commit is contained in:
Victor Zverovich 2014-04-30 11:28:07 -07:00
parent f68d329d24
commit 34712da2e7

View File

@ -142,9 +142,9 @@ void FormatSystemErrorMessage(
FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, 0, FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, 0,
error_code, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), error_code, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
reinterpret_cast<LPWSTR>(system_message.ptr()), 0, 0)) { reinterpret_cast<LPWSTR>(system_message.ptr()), 0, 0)) {
UTF16ToUTF8 utf8_message; fmt::internal::UTF16ToUTF8 utf8_message;
if (!utf8_message.Convert(system_message.c_str())) { if (!utf8_message.Convert(system_message.c_str())) {
out << message << ": " << c_str(utf8_message); out << message << ": " << fmt::c_str(utf8_message);
return; return;
} }
} }