summaryrefslogtreecommitdiff
path: root/plugins/Svc_crshdmp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-05-31 17:23:05 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-05-31 17:23:05 +0000
commit51b498a8a1a1a15580aa916f84b11d1f65493370 (patch)
treedcbf4c8514a98a3293e2f2596eddb39dd108df84 /plugins/Svc_crshdmp
parentf0c36eeb0c64e17265cd6d9312d1eabe5ed1337a (diff)
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
Diffstat (limited to 'plugins/Svc_crshdmp')
-rw-r--r--plugins/Svc_crshdmp/dumper.cpp10
1 files changed, 4 insertions, 6 deletions
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"));