diff options
Diffstat (limited to 'plugins/CrashDumper')
-rw-r--r-- | plugins/CrashDumper/src/bkstring.h | 4 | ||||
-rw-r--r-- | plugins/CrashDumper/src/exhndlr.cpp | 10 |
2 files changed, 0 insertions, 14 deletions
diff --git a/plugins/CrashDumper/src/bkstring.h b/plugins/CrashDumper/src/bkstring.h index 511ce2f173..8000723225 100644 --- a/plugins/CrashDumper/src/bkstring.h +++ b/plugins/CrashDumper/src/bkstring.h @@ -27,11 +27,7 @@ public: typedef value_type* iterator;
typedef const value_type* const_iterator;
-#if defined(_MSC_VER) && _MSC_VER > 1200
static const size_type npos = size_type(-1);
-#else
- enum { npos = -1 };
-#endif
private:
value_type* buf;
diff --git a/plugins/CrashDumper/src/exhndlr.cpp b/plugins/CrashDumper/src/exhndlr.cpp index f39e955e64..cee6cb283c 100644 --- a/plugins/CrashDumper/src/exhndlr.cpp +++ b/plugins/CrashDumper/src/exhndlr.cpp @@ -32,13 +32,7 @@ void RemoveExceptionHandler(void) void UnloadDbgHlp(void)
{
-#ifdef _MSC_VER
-#if _MSC_VER > 1200
__FUnloadDelayLoadedDLL2("dbghelp.dll");
-#else
- __FUnloadDelayLoadedDLL("dbghelp.dll");
-#endif
-#endif
}
int myDebugFilter(unsigned int code, PEXCEPTION_POINTERS ep)
@@ -163,7 +157,6 @@ DWORD MirandaThreadFilter(DWORD code, EXCEPTION_POINTERS* info) return threadfltr(code, info);
}
-#if _MSC_VER >= 1400
void InvalidParameterHandler(const wchar_t*, const wchar_t*, const wchar_t*, unsigned int, UINT_PTR)
{
EXCEPTION_RECORD ExceptionRecord = {0};
@@ -191,13 +184,10 @@ void InvalidParameterHandler(const wchar_t*, const wchar_t*, const wchar_t*, uns myfilterWorker(&info, true);
}
-#endif
void InitExceptionHandler(void)
{
-#if _MSC_VER >= 1400
_set_invalid_parameter_handler(InvalidParameterHandler);
-#endif
threadfltr = Miranda_SetExceptFilter(MirandaThreadFilter);
SetExceptionHandler();
}
|