From 7fe4aeaec6ec0300ecd544579b462aa526b07080 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 11 Oct 2013 15:45:54 +0000 Subject: crash dumper detached from C Runtime errors, cause Miranda disables them in the very beginning git-svn-id: http://svn.miranda-ng.org/main/trunk@6439 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/CrashDumper/src/exhndlr.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'plugins') diff --git a/plugins/CrashDumper/src/exhndlr.cpp b/plugins/CrashDumper/src/exhndlr.cpp index e014885112..cf7ceb308d 100644 --- a/plugins/CrashDumper/src/exhndlr.cpp +++ b/plugins/CrashDumper/src/exhndlr.cpp @@ -142,31 +142,8 @@ DWORD MirandaThreadFilter(DWORD code, EXCEPTION_POINTERS* info) return threadfltr(code, info); } -void InvalidParameterHandler(const wchar_t*, const wchar_t*, const wchar_t*, unsigned int, UINT_PTR) -{ - EXCEPTION_RECORD ExceptionRecord = {0}; - CONTEXT ContextRecord = {0}; - EXCEPTION_POINTERS info = { &ExceptionRecord, &ContextRecord }; - - RtlCaptureContext(&ContextRecord); - -#if defined(_AMD64_) - ExceptionRecord.ExceptionAddress = (PVOID)ContextRecord.Rip; -#elif defined(_IA64_) - ExceptionRecord.ExceptionAddress = (PVOID)ContextRecord.BrRp; -#else - ExceptionRecord.ExceptionAddress = (PVOID)ContextRecord.Eip; -#endif - - ExceptionRecord.ExceptionCode = STATUS_INVALID_CRUNTIME_PARAMETER; - ExceptionRecord.ExceptionFlags = EXCEPTION_NONCONTINUABLE; - - myfilterWorker(&info, true); -} - void InitExceptionHandler(void) { - _set_invalid_parameter_handler(InvalidParameterHandler); threadfltr = Miranda_SetExceptFilter(MirandaThreadFilter); SetExceptionHandler(); } -- cgit v1.2.3