diff options
author | George Hazan <george.hazan@gmail.com> | 2013-10-11 15:45:54 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-10-11 15:45:54 +0000 |
commit | 7fe4aeaec6ec0300ecd544579b462aa526b07080 (patch) | |
tree | 0f71644721218fc97e85762944fd06be5b89cd01 /plugins/CrashDumper | |
parent | 2ddab099442449a7f5f14014f5bf283cfb59501d (diff) |
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
Diffstat (limited to 'plugins/CrashDumper')
-rw-r--r-- | plugins/CrashDumper/src/exhndlr.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
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();
}
|