diff options
author | George Hazan <george.hazan@gmail.com> | 2013-02-28 17:02:58 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-02-28 17:02:58 +0000 |
commit | ea922a1ddd0526d37c6a299ab6260729612a8dfa (patch) | |
tree | 56bc15af2b2b173b4368ef3c1a6a065267a23ccf /plugins/YAMN/src | |
parent | 7b44e3c9879ed7cb1ab3f64b829e0c0b09c6ffae (diff) |
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
Diffstat (limited to 'plugins/YAMN/src')
-rw-r--r-- | plugins/YAMN/src/main.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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);
}
/////////////////////////////////////////////////////////////////////////////////////////
|