From a318244a1c453be1a42b12fe136f188f67dce022 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 30 Jun 2014 16:48:05 -0700 Subject: [PATCH] Fix Windows build. --- format.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format.cc b/format.cc index 6a3e2aa2..ad551f46 100644 --- a/format.cc +++ b/format.cc @@ -1096,7 +1096,7 @@ void fmt::ReportSystemError( void fmt::WinErrorSink::operator()(const Writer &w) const { Writer message; internal::FormatWinErrorMessage(message, error_code_, w.c_str()); - throw SystemError(message.c_str(), error_code_); + throw SystemError(error_code_, message.c_str()); } void fmt::ReportWinError(