Fix UTF16ToUTF8.

This commit is contained in:
Victor Zverovich 2014-05-01 07:09:08 -07:00
parent 58a2f4f425
commit 42764e54ae

View File

@ -185,7 +185,7 @@ fmt::internal::UTF8ToUTF16::UTF8ToUTF16(fmt::StringRef s) {
fmt::internal::UTF16ToUTF8::UTF16ToUTF8(fmt::WStringRef s) { fmt::internal::UTF16ToUTF8::UTF16ToUTF8(fmt::WStringRef s) {
if (int error_code = Convert(s)) { if (int error_code = Convert(s)) {
ThrowSystemError(GetLastError(), ThrowWinError(GetLastError(),
"cannot convert string from UTF-16 to UTF-8"); "cannot convert string from UTF-16 to UTF-8");
} }
} }