mirror of
https://github.com/corda/corda.git
synced 2025-03-12 07:23:59 +00:00
fix aliasing warning introduced in last commit
This commit is contained in:
parent
8e57639ff5
commit
5c88f77412
@ -888,16 +888,23 @@ dump(LPEXCEPTION_POINTERS e, const char* directory)
|
||||
|
||||
if (file != INVALID_HANDLE_VALUE) {
|
||||
My_MINIDUMP_EXCEPTION_INFORMATION exception
|
||||
= { GetCurrentThreadId(), e, true };
|
||||
= { GetCurrentThreadId(), e, true };
|
||||
|
||||
union {
|
||||
MINIDUMP_EXCEPTION_INFORMATION* exceptionPointer;
|
||||
My_MINIDUMP_EXCEPTION_INFORMATION* myExceptionPointer;
|
||||
};
|
||||
|
||||
MiniDumpWriteDump
|
||||
(GetCurrentProcess(),
|
||||
GetCurrentProcessId(),
|
||||
file,
|
||||
MiniDumpWithFullMemory,
|
||||
reinterpret_cast<MINIDUMP_EXCEPTION_INFORMATION*>(&exception),
|
||||
0,
|
||||
0);
|
||||
myExceptionPointer = &exception;
|
||||
|
||||
MiniDumpWriteDump
|
||||
(GetCurrentProcess(),
|
||||
GetCurrentProcessId(),
|
||||
file,
|
||||
MiniDumpWithFullMemory,
|
||||
exceptionPointer,
|
||||
0,
|
||||
0);
|
||||
|
||||
CloseHandle(file);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user