From 012e476a8e8f54314b80507a427ffbc547adaa85 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Tue, 13 Oct 2015 12:25:44 +0000 Subject: CrashDumper: fix crash dumps git-svn-id: http://svn.miranda-ng.org/main/trunk@15552 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/CrashDumper/src/dumper.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/CrashDumper') diff --git a/plugins/CrashDumper/src/dumper.cpp b/plugins/CrashDumper/src/dumper.cpp index fa96b34b92..3b7a3524f7 100644 --- a/plugins/CrashDumper/src/dumper.cpp +++ b/plugins/CrashDumper/src/dumper.cpp @@ -62,7 +62,7 @@ BOOL CALLBACK LoadedModules64(LPCSTR, DWORD64 ModuleBase, ULONG ModuleSize, PVOI TCHAR path[MAX_PATH]; GetModuleFileName(hModule, path, MAX_PATH); - buffer.AppendFormat(TEXT("%s %p - %p"), path, ModuleBase, ModuleBase + ModuleSize); + buffer.AppendFormat(TEXT("%s %p - %p"), path, (void*)ModuleBase, (void*)(ModuleBase + ModuleSize)); GetVersionInfo(hModule, buffer); @@ -223,7 +223,7 @@ static void GetPluginsString(CMString& buffer, unsigned& flags) TCHAR timebuf[30] = TEXT(""); GetLastWriteTime(&FindFileData.ftLastWriteTime, timebuf, 30); - const TCHAR *unica = (((PLUGININFOEX*)pi)->flags & UNICODE_AWARE) ? TEXT("|Unicode aware|") : TEXT(""); + const TCHAR *unica = !(((PLUGININFOEX*)pi)->flags & UNICODE_AWARE) ? TEXT("|ANSI|") : TEXT(""); ListItem* lst = new ListItem; int v1, v2, v3, v4; @@ -663,7 +663,7 @@ void CreateCrashReport(HANDLE hDumpFile, PEXCEPTION_POINTERS exc_ptr, const TCHA static const TCHAR formatd[] = TEXT("%p (%S %p): %S (%d): %S\r\n"); - buffer.AppendFormat(formatd, frame.AddrPC.Offset, moduleName, Module.BaseOfImage,lineFileName, Line.LineNumber, name); + buffer.AppendFormat(formatd, (void*)frame.AddrPC.Offset, moduleName, (void*)Module.BaseOfImage,lineFileName, Line.LineNumber, name); } SymCleanup(hProcess); buffer.Append(_T("\r\n")); -- cgit v1.2.3