summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/utils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-02-01 08:57:57 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-02-01 08:57:57 +0000
commit7c16f0bc7af13884de18712d9b66c7e7218d51c0 (patch)
tree635025a379c7e61567a11aab1cc4986c9186d93f /plugins/TabSRMM/src/utils.cpp
parentf2e1635b5b50ebe64a7bde2b68654034aa2eecdb (diff)
own exception dialog removed from tabSRMM
git-svn-id: http://svn.miranda-ng.org/main/trunk@7981 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/utils.cpp')
-rw-r--r--plugins/TabSRMM/src/utils.cpp54
1 files changed, 0 insertions, 54 deletions
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<unsigned char*>(mir_alloc(size));
- *_p = 0;
-
- return(reinterpret_cast<void*>(_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<unsigned char*>(mir_alloc(size));
- *_p = 0;
-
- return(reinterpret_cast<void*>(_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);