← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 3252: fix crash logging on XP

 

------------------------------------------------------------
revno: 3252
committer: poy <poy@xxxxxxxxxx>
branch nick: trunk
timestamp: Tue 2013-04-09 18:12:25 +0200
message:
  fix crash logging on XP
modified:
  win32/CrashLogger.cpp


--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk

Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'win32/CrashLogger.cpp'
--- win32/CrashLogger.cpp	2013-03-25 20:50:31 +0000
+++ win32/CrashLogger.cpp	2013-04-09 16:12:25 +0000
@@ -430,6 +430,22 @@
 	}
 }
 
+/* although the 64-bit functions should just map to the 32-bit ones on a 32-bit OS, this seems to
+fail on XP. */
+#ifndef _WIN64
+#define DWORD64 DWORD
+#define IMAGEHLP_LINE64 IMAGEHLP_LINE
+#define IMAGEHLP_MODULE64 IMAGEHLP_MODULE
+#define IMAGEHLP_SYMBOL64 IMAGEHLP_SYMBOL
+#define STACKFRAME64 STACKFRAME
+#define StackWalk64 StackWalk
+#define SymFunctionTableAccess64 SymFunctionTableAccess
+#define SymGetLineFromAddr64 SymGetLineFromAddr
+#define SymGetModuleBase64 SymGetModuleBase
+#define SymGetModuleInfo64 SymGetModuleInfo
+#define SymGetSymFromAddr64 SymGetSymFromAddr
+#endif
+
 #elif defined(_MSC_VER)
 
 #include <dbghelp.h>