Commit 932756ef authored by Max Kellermann's avatar Max Kellermann

win32/ComWorker: fix the FormatHResultError() return type

Casting to std::runtime_error loses information (and prevents RVO).
parent 78382654
......@@ -88,7 +88,7 @@ static inline const std::error_category &hresult_category() noexcept {
return hresult_category_instance;
}
gcc_printf(2, 3) static inline std::runtime_error
gcc_printf(2, 3) static inline std::system_error
FormatHResultError(HRESULT result, const char *fmt, ...) noexcept {
std::va_list args1, args2;
va_start(args1, fmt);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment