summaryrefslogtreecommitdiff
path: root/plugins/CrashDumper/src/crshdmp.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2014-11-11 19:27:54 +0000
committerKirill Volinsky <mataes2007@gmail.com>2014-11-11 19:27:54 +0000
commit816d3b463aa23516dc25c934c41d6483d9e3d3f5 (patch)
treef7a4104f4eb1443ae23523426f9d21333e31d61a /plugins/CrashDumper/src/crshdmp.cpp
parente84f4c2b63f9cf85b35082a31fe6144c34d63eb0 (diff)
fixed vi info in command line
git-svn-id: http://svn.miranda-ng.org/main/trunk@10957 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CrashDumper/src/crshdmp.cpp')
-rw-r--r--plugins/CrashDumper/src/crshdmp.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/plugins/CrashDumper/src/crshdmp.cpp b/plugins/CrashDumper/src/crshdmp.cpp
index 8c195c3276..19938264d7 100644
--- a/plugins/CrashDumper/src/crshdmp.cpp
+++ b/plugins/CrashDumper/src/crshdmp.cpp
@@ -128,6 +128,20 @@ INT_PTR ViewVersionInfo(WPARAM wParam, LPARAM)
return 0;
}
+INT_PTR GetVersionInfo(WPARAM wParam, LPARAM lParam)
+{
+ int result = 1; //failure
+ if (lParam != NULL) {
+ CMString buffer;
+ PrintVersionInfo(buffer, (unsigned int)wParam);
+ char **retData = (char **)lParam;
+ *retData = mir_utf8encodeT(buffer.c_str());
+ if (*retData)
+ result = 0; //success
+ }
+ return result;
+}
+
INT_PTR OpenUrl(WPARAM wParam, LPARAM)
{
switch (wParam) {
@@ -349,6 +363,7 @@ extern "C" int __declspec(dllexport) Load(void)
CreateServiceFunction(MS_CRASHDUMPER_STORETOFILE, StoreVersionInfoToFile);
CreateServiceFunction(MS_CRASHDUMPER_STORETOCLIP, StoreVersionInfoToClipboard);
CreateServiceFunction(MS_CRASHDUMPER_VIEWINFO, ViewVersionInfo);
+ CreateServiceFunction(MS_CRASHDUMPER_GETINFO, GetVersionInfo);
CreateServiceFunction(MS_CRASHDUMPER_UPLOAD, UploadVersionInfo);
CreateServiceFunction(MS_CRASHDUMPER_URL, OpenUrl);
CreateServiceFunction(MS_SERVICEMODE_LAUNCH, ServiceModeLaunch);