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