Misc: Fix a bunch of issues preventing C++20 compilation

This commit is contained in:
Stenzek
2023-07-20 21:23:31 +10:00
committed by Connor McLaughlin
parent 7ba7e04a13
commit 296dcccd81
21 changed files with 50 additions and 49 deletions
+2 -2
View File
@@ -88,7 +88,7 @@ void Error::SetWin32(unsigned long err)
if (r > 0)
m_description = fmt::format("Win32 Error {}: {}", err, std::string_view(buf, r));
else
m_description = fmt::format("Win32 Error {}: <Could not resolve system error ID>");
m_description = fmt::format("Win32 Error {}: <Could not resolve system error ID>", err);
}
void Error::SetWin32(Error* errptr, unsigned long err)
@@ -106,7 +106,7 @@ void Error::SetHResult(long err)
if (r > 0)
m_description = fmt::format("HRESULT {:08X}: {}", err, std::string_view(buf, r));
else
m_description = fmt::format("HRESULT {:08X}: <Could not resolve system error ID>");
m_description = fmt::format("HRESULT {:08X}: <Could not resolve system error ID>", err);
}
void Error::SetHResult(Error* errptr, long err)