mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Misc: Fix compile errors found with msvc /permissive-
(cherry picked from commit b3db50a3b4)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -153,7 +153,7 @@ class WheatyExceptionReport
|
||||
static BOOL _GetProcessorName(TCHAR* sProcessorName, DWORD maxcount);
|
||||
|
||||
// Helper functions
|
||||
static LPTSTR GetExceptionString(DWORD dwCode);
|
||||
static LPCTSTR GetExceptionString(DWORD dwCode);
|
||||
static BOOL GetLogicalAddress(PVOID addr, PTSTR szModule, DWORD len,
|
||||
DWORD& section, DWORD_PTR& offset);
|
||||
|
||||
@@ -163,7 +163,7 @@ class WheatyExceptionReport
|
||||
|
||||
static bool FormatSymbolValue(PSYMBOL_INFO, STACKFRAME64 *);
|
||||
|
||||
static void DumpTypeIndex(DWORD64, DWORD, DWORD_PTR, bool &, char const*, char*, bool, bool);
|
||||
static void DumpTypeIndex(DWORD64, DWORD, DWORD_PTR, bool &, char const*, char const*, bool, bool);
|
||||
|
||||
static void FormatOutputValue(char * pszCurrBuffer, BasicType basicType, DWORD64 length, PVOID pAddress, size_t bufferSize, size_t countOverride = 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user