From 7c16f0bc7af13884de18712d9b66c7e7218d51c0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 1 Feb 2014 08:57:57 +0000 Subject: own exception dialog removed from tabSRMM git-svn-id: http://svn.miranda-ng.org/main/trunk@7981 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/utils.cpp | 54 ------------------------------------------- 1 file changed, 54 deletions(-) (limited to 'plugins/TabSRMM/src/utils.cpp') diff --git a/plugins/TabSRMM/src/utils.cpp b/plugins/TabSRMM/src/utils.cpp index bade430b5a..55525d62c5 100644 --- a/plugins/TabSRMM/src/utils.cpp +++ b/plugins/TabSRMM/src/utils.cpp @@ -52,60 +52,6 @@ LRESULT TSAPI _dlgReturn(HWND hWnd, LRESULT result) return result; } -void* Utils::safeAlloc(const size_t size) -{ - __try { - unsigned char* _p = reinterpret_cast(mir_alloc(size)); - *_p = 0; - - return(reinterpret_cast(_p)); - } - __except(CGlobals::Ex_ShowDialog(GetExceptionInformation(), __FILE__, __LINE__, L"MEMORY_ALLOCATION", false)) - { - return 0; - } -} - -void* Utils::safeCalloc(const size_t size) -{ - __try { - void* _p = safeAlloc(size); - ::ZeroMemory(_p, size); - return(_p); - } - __except(CGlobals::Ex_ShowDialog(GetExceptionInformation(), __FILE__, __LINE__, L"MEMORY_ALLOCATION", false)) - { - return 0; - } -} - -void* Utils::safeMirAlloc(const size_t size) -{ - __try { - unsigned char* _p = reinterpret_cast(mir_alloc(size)); - *_p = 0; - - return(reinterpret_cast(_p)); - } - __except(CGlobals::Ex_ShowDialog(GetExceptionInformation(), __FILE__, __LINE__, L"MIR_MEMORY_ALLOCATION", false)) - { - return 0; - } -} - -void* Utils::safeMirCalloc(const size_t size) -{ - __try { - void* _p = safeMirAlloc(size); - ::ZeroMemory(_p, size); - return(_p); - } - __except(CGlobals::Ex_ShowDialog(GetExceptionInformation(), __FILE__, __LINE__, L"MIR_MEMORY_ALLOCATION", false)) - { - return 0; - } -} - TCHAR* Utils::FilterEventMarkers(TCHAR *wszText) { tstring text(wszText); -- cgit v1.2.3