Core/Misc: Fix compile errors found with msvc /permissive-

(cherry picked from commit b3db50a3b4)
This commit is contained in:
Shauren
2020-08-04 15:42:08 +02:00
parent e2fb15fd22
commit 58d199db48
8 changed files with 44 additions and 18 deletions

View File

@@ -14,7 +14,7 @@
#pragma warning(disable:4311)
#include <windows.h>
#include <tlhelp32.h>
#include <stdio.h>
#include <cstdio>
#include <tchar.h>
#define _NO_CVCONST_H
#include <dbghelp.h>
@@ -613,7 +613,7 @@ PEXCEPTION_POINTERS pExceptionInfo)
// Given an exception code, returns a pointer to a static string with a
// description of the exception
//======================================================================
LPTSTR WheatyExceptionReport::GetExceptionString(DWORD dwCode)
LPCTSTR WheatyExceptionReport::GetExceptionString(DWORD dwCode)
{
#define EXCEPTION(x) case EXCEPTION_##x: return _T(#x);
@@ -950,7 +950,7 @@ DWORD dwTypeIndex,
DWORD_PTR offset,
bool & bHandled,
char const* Name,
char* /*suffix*/,
char const* /*suffix*/,
bool newSymbol,
bool logChildren)
{