summaryrefslogtreecommitdiff
path: root/stopspam/src
diff options
context:
space:
mode:
authorgeorge.hazan <george.hazan@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb>2011-04-21 15:11:36 +0000
committergeorge.hazan <george.hazan@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb>2011-04-21 15:11:36 +0000
commitefafb53f1a496f08994d921bc03f372bc374daf9 (patch)
tree47df42f427b4d373c771a897e21b460bd117d34d /stopspam/src
parent1f0e74b6a592eefe4a62ae7ddb625b229d55c672 (diff)
- crash fix for the ANSI version
- .suo file removed; git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@9 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb
Diffstat (limited to 'stopspam/src')
-rw-r--r--stopspam/src/events.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/stopspam/src/events.cpp b/stopspam/src/events.cpp
index 74d4195..fa73a07 100644
--- a/stopspam/src/events.cpp
+++ b/stopspam/src/events.cpp
@@ -46,15 +46,13 @@ MIRANDA_HOOK_EVENT(ME_DB_EVENT_ADDED, wParam, lParam)
#ifdef _UNICODE
AuthRepl=mir_u2a(variables_parse(plSets->AuthRepl.Get(), hcntct).c_str());
#else
- AuthRepl=variables_parse(plSets->AuthRepl.Get(), hcntct).c_str();
+ AuthRepl=mir_strdup( variables_parse(plSets->AuthRepl.Get(), hcntct).c_str());
#endif
// ...send message
std::string allowService = dbei.szModule;
allowService += PS_AUTHDENY;
CallService(allowService.c_str(), (WPARAM)hDbEvent, (LPARAM)AuthRepl);
- #ifdef _UNICODE
- mir_free(AuthRepl);
- #endif
+ mir_free(AuthRepl);
DBWriteContactSettingByte(hcntct, "CList", "NotOnList", 1);
DBWriteContactSettingByte(hcntct, "CList", "Hidden", 1);
if (!plSets->HistLog.Get())