From 16f34087d04db189c0d204540c873ebc910c0fa2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 11 Aug 2013 14:39:15 +0000 Subject: trap #3 for a crash git-svn-id: http://svn.miranda-ng.org/main/trunk@5653 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/srmm.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/TabSRMM/src/srmm.cpp') diff --git a/plugins/TabSRMM/src/srmm.cpp b/plugins/TabSRMM/src/srmm.cpp index a85912ad55..2770a3ec73 100644 --- a/plugins/TabSRMM/src/srmm.cpp +++ b/plugins/TabSRMM/src/srmm.cpp @@ -166,11 +166,9 @@ int _DebugTraceA(const char *fmt, ...) #else { char szLogFileName[MAX_PATH], szDataPath[MAX_PATH]; - FILE *f; - CallService(MS_DB_GETPROFILEPATH, MAX_PATH, (LPARAM)szDataPath); - mir_snprintf(szLogFileName, MAX_PATH, "%s\\%s", szDataPath, "tabsrmm_debug.log"); - f = fopen(szLogFileName, "a+"); + mir_snprintf(szLogFileName, MAX_PATH, "%s\\tabsrmm_debug.log", szDataPath); + FILE *f = fopen(szLogFileName, "a+"); if (f) { fputs(debug, f); fputs("\n", f); -- cgit v1.2.3