From ea922a1ddd0526d37c6a299ab6260729612a8dfa Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 28 Feb 2013 17:02:58 +0000 Subject: new template, VARST, to hold the result of calling Utils_ReplaceVarsT() git-svn-id: http://svn.miranda-ng.org/main/trunk@3806 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/YAMN/src/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/YAMN/src') diff --git a/plugins/YAMN/src/main.cpp b/plugins/YAMN/src/main.cpp index 1743199ba2..07a6ce0e85 100644 --- a/plugins/YAMN/src/main.cpp +++ b/plugins/YAMN/src/main.cpp @@ -123,7 +123,7 @@ static void GetProfileDirectory(TCHAR *szPath, int cbPath) CallService(MS_DB_GETPROFILEPATHT, SIZEOF(tszOldPath), (LPARAM)tszOldPath); _tcscat(tszOldPath, _T("\\*.book")); - TCHAR* ptszNewPath = Utils_ReplaceVarsT( _T("%miranda_userdata%")); + VARST ptszNewPath( _T("%miranda_userdata%")); SHFILEOPSTRUCT file_op = { NULL, @@ -137,7 +137,6 @@ static void GetProfileDirectory(TCHAR *szPath, int cbPath) SHFileOperation(&file_op); _tcsncpy(szPath, ptszNewPath, cbPath); - mir_free(ptszNewPath); } ///////////////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3