From 51b498a8a1a1a15580aa916f84b11d1f65493370 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Thu, 31 May 2012 17:23:05 +0000 Subject: Svc_crshdmp: fixed profile size and creation date in VI git-svn-id: http://svn.miranda-ng.org/main/trunk@247 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Svc_crshdmp/dumper.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'plugins/Svc_crshdmp') diff --git a/plugins/Svc_crshdmp/dumper.cpp b/plugins/Svc_crshdmp/dumper.cpp index 5d3a325ff1..21c90cd33e 100644 --- a/plugins/Svc_crshdmp/dumper.cpp +++ b/plugins/Svc_crshdmp/dumper.cpp @@ -500,11 +500,10 @@ void PrintVersionInfo(bkstring& buffer, unsigned flags) GetLanguageString(buffer); buffer.append(TEXT("\r\n")); + TCHAR *profpathfull = Utils_ReplaceVarsT(profpath); if (flags & VI_FLAG_PRNVAR) { - TCHAR *profpathfull = Utils_ReplaceVarsT(profpath); GetFreeDiskString(profpathfull, buffer); - mir_free(profpathfull); buffer.append(TEXT("\r\n")); } @@ -518,11 +517,9 @@ void PrintVersionInfo(bkstring& buffer, unsigned flags) buffer.appendfmt(TEXT("Build time: %s\r\n"), mirtime); TCHAR profpn[MAX_PATH]; - crs_sntprintf(profpn, sizeof(profpn), TEXT("%s\\%s"), profpath, profname); - TCHAR* tszFolder = Utils_ReplaceVarsT(profpn); + crs_sntprintf(profpn, SIZEOF(profpn), TEXT("%s\\%s"), profpathfull, profname); - buffer.appendfmt(TEXT("Profile: %s\r\n"), tszFolder); - mir_free(tszFolder); + buffer.appendfmt(TEXT("Profile: %s\r\n"), profpn); if (flags & VI_FLAG_PRNVAR) { @@ -540,6 +537,7 @@ void PrintVersionInfo(bkstring& buffer, unsigned flags) buffer.appendfmt(TEXT("Profile creation date: %s\r\n"), mirtime); } } + mir_free(profpathfull); GetLanguagePackString(buffer); buffer.append(TEXT("\r\n")); -- cgit v1.2.3