From 42764e54ae884be90a64974fc1a4139eb61428a2 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 1 May 2014 07:09:08 -0700 Subject: [PATCH] Fix UTF16ToUTF8. --- format.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format.cc b/format.cc index 2b45fcc8..ab2a5b5a 100644 --- a/format.cc +++ b/format.cc @@ -185,7 +185,7 @@ fmt::internal::UTF8ToUTF16::UTF8ToUTF16(fmt::StringRef s) { fmt::internal::UTF16ToUTF8::UTF16ToUTF8(fmt::WStringRef s) { if (int error_code = Convert(s)) { - ThrowSystemError(GetLastError(), + ThrowWinError(GetLastError(), "cannot convert string from UTF-16 to UTF-8"); } }