summaryrefslogtreecommitdiff
path: root/plugins/CrashDumper/src/crshdmp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/CrashDumper/src/crshdmp.cpp')
-rw-r--r--plugins/CrashDumper/src/crshdmp.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/CrashDumper/src/crshdmp.cpp b/plugins/CrashDumper/src/crshdmp.cpp
index a20f5c82d0..6176b145e9 100644
--- a/plugins/CrashDumper/src/crshdmp.cpp
+++ b/plugins/CrashDumper/src/crshdmp.cpp
@@ -75,10 +75,7 @@ INT_PTR StoreVersionInfoToFile(WPARAM, LPARAM lParam)
CMString buffer;
PrintVersionInfo(buffer, (unsigned int)lParam | VI_FLAG_PRNVAR);
- char* bufu = mir_utf8encodeT(buffer.c_str());
- WriteUtfFile(hDumpFile, bufu);
- mir_free(bufu);
-
+ WriteUtfFile(hDumpFile, T2Utf(buffer.c_str()));
CloseHandle(hDumpFile);
ShowMessage(3, TranslateT("Version Info stored into file %s"), path);