diff --git a/fmt/format.cc b/fmt/format.cc index 719a556f..6abda6d5 100644 --- a/fmt/format.cc +++ b/fmt/format.cc @@ -350,7 +350,7 @@ FMT_FUNC void WindowsError::init( int err_code, CStringRef format_str, format_args args) { error_code_ = err_code; MemoryWriter w; - internal::format_windows_error(w, err_code, format(format_str, args)); + internal::format_windows_error(w, err_code, vformat(format_str, args)); std::runtime_error &base = *this; base = std::runtime_error(w.str()); }