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

@ -890,12 +890,19 @@ dump(LPEXCEPTION_POINTERS e, const char* directory)
My_MINIDUMP_EXCEPTION_INFORMATION exception
= { GetCurrentThreadId(), e, true };
union {
MINIDUMP_EXCEPTION_INFORMATION* exceptionPointer;
My_MINIDUMP_EXCEPTION_INFORMATION* myExceptionPointer;
};
myExceptionPointer = &exception;
MiniDumpWriteDump
(GetCurrentProcess(),
GetCurrentProcessId(),
file,
MiniDumpWithFullMemory,
reinterpret_cast<MINIDUMP_EXCEPTION_INFORMATION*>(&exception),
exceptionPointer,
0,
0);