win32/ComWorker: fix the FormatHResultError() return type
Casting to std::runtime_error loses information (and prevents RVO).
This commit is contained in:
parent
7838265482
commit
932756efce
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user