From eb76a93551c1a1288d076c5301549128088ff4e1 Mon Sep 17 00:00:00 2001 From: Bryan Roe Date: Mon, 9 Sep 2019 17:44:42 -0700 Subject: [PATCH] Fixed compiler warnings --- microstack/ILibParsers.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/microstack/ILibParsers.c b/microstack/ILibParsers.c index 50f49fd..4dd94ea 100644 --- a/microstack/ILibParsers.c +++ b/microstack/ILibParsers.c @@ -2140,10 +2140,10 @@ void ILib_WindowsExceptionDebugEx(ILib_DumpEnabledContext *dumpEnabledExceptionC if (g_ILibCrashDump_path != NULL) { - HANDLE hDumpFile = CreateFileW(g_ILibCrashDump_path, GENERIC_WRITE, FILE_SHARE_READ, 0, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0); + HANDLE hDumpFile = CreateFileW((LPCWSTR)g_ILibCrashDump_path, GENERIC_WRITE, FILE_SHARE_READ, 0, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0); MINIDUMP_EXCEPTION_INFORMATION i; i.ClientPointers = FALSE; - i.ExceptionPointers = dumpEnabledExceptionContext; + i.ExceptionPointers = (PEXCEPTION_POINTERS)dumpEnabledExceptionContext; i.ThreadId = GetCurrentThreadId(); MiniDumpWriteDump(GetCurrentProcess(), GetCurrentProcessId(), hDumpFile, MiniDumpWithIndirectlyReferencedMemory | @@ -2332,7 +2332,7 @@ void ILib_POSIX_CrashHandler(int code) struct sigaction act; memset(&act, 0, sizeof(act)); - act.sa_sigaction = SIG_DFL; + act.sa_sigaction = (void*)SIG_DFL; act.sa_flags = SA_RESTART; sigemptyset(&act.sa_mask); sigaction(SIGSEGV, &act, NULL);