fix aliasing warning introduced in last commit

This commit is contained in:
Joel Dice
2011-02-10 13:33:21 -07:00
parent 8e57639ff5
commit 5c88f77412

View File

@ -888,16 +888,23 @@ dump(LPEXCEPTION_POINTERS e, const char* directory)
if (file != INVALID_HANDLE_VALUE) { if (file != INVALID_HANDLE_VALUE) {
My_MINIDUMP_EXCEPTION_INFORMATION exception My_MINIDUMP_EXCEPTION_INFORMATION exception
= { GetCurrentThreadId(), e, true }; = { GetCurrentThreadId(), e, true };
MiniDumpWriteDump union {
(GetCurrentProcess(), MINIDUMP_EXCEPTION_INFORMATION* exceptionPointer;
GetCurrentProcessId(), My_MINIDUMP_EXCEPTION_INFORMATION* myExceptionPointer;
file, };
MiniDumpWithFullMemory,
reinterpret_cast<MINIDUMP_EXCEPTION_INFORMATION*>(&exception), myExceptionPointer = &exception;
0,
0); MiniDumpWriteDump
(GetCurrentProcess(),
GetCurrentProcessId(),
file,
MiniDumpWithFullMemory,
exceptionPointer,
0,
0);
CloseHandle(file); CloseHandle(file);
} }