Common: Warning fixes for clang-cl

This commit is contained in:
Stenzek
2022-12-25 09:27:44 +00:00
committed by refractionpcsx2
parent 5c95a6f4fa
commit ca92d4ea3d
17 changed files with 68 additions and 21 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ static void WriteMinidumpAndCallstack(PEXCEPTION_POINTERS exi)
{
char line[1024];
DWORD written;
std::snprintf(line, std::size(line), "Exception 0x%08X at 0x%p\n", exi->ExceptionRecord->ExceptionCode,
std::snprintf(line, std::size(line), "Exception 0x%08X at 0x%p\n", static_cast<unsigned>(exi->ExceptionRecord->ExceptionCode),
exi->ExceptionRecord->ExceptionAddress);
WriteFile(hFile, line, static_cast<DWORD>(std::strlen(line)), &written, nullptr);
}