From 216f510b259da44e9e3e63d508d7e15315fcb4df Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 10 Nov 2023 13:53:38 +0300 Subject: MimCmd: missing MUUID for translation --- plugins/MimCmd/src/MimCmd.cpp | 13 +++++++++++++ plugins/MimCmd/src/commands.cpp | 6 +++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/plugins/MimCmd/src/MimCmd.cpp b/plugins/MimCmd/src/MimCmd.cpp index 5b7bde1b96..de8617507a 100644 --- a/plugins/MimCmd/src/MimCmd.cpp +++ b/plugins/MimCmd/src/MimCmd.cpp @@ -21,6 +21,19 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "stdafx.h" #include "..\..\build\appstub\appstub.cpp" +PLUGININFOEX pluginInfoEx = { + sizeof(PLUGININFOEX), + __PLUGIN_NAME, + PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM), + __DESCRIPTION, + __AUTHOR, + __COPYRIGHT, + __AUTHORWEB, + UNICODE_AWARE, + // {7EFA77D0-5CA2-485E-A045-609B988F3718} + { 0x7efa77d0, 0x5ca2, 0x485e, { 0xa0, 0x45, 0x60, 0x9b, 0x98, 0x8f, 0x37, 0x18 }} +}; + wchar_t* GetProgramName(wchar_t *programName, size_t size) { wchar_t name[512]; diff --git a/plugins/MimCmd/src/commands.cpp b/plugins/MimCmd/src/commands.cpp index ec18b162f3..9caaa42af5 100644 --- a/plugins/MimCmd/src/commands.cpp +++ b/plugins/MimCmd/src/commands.cpp @@ -51,9 +51,9 @@ int ConnectToMiranda() SetEnvironmentVariable(L"PATH", ptszVal); delete[] ptszVal; - wchar_t pluginPath[1024] = {0}; + wchar_t pluginPath[1024]; pluginPath[0] = 0; GetMirandaFolder(pluginPath, _countof(pluginPath)); - if(pluginPath[0]) + if (pluginPath[0]) mir_wstrcat(pluginPath, L"\\plugins\\cmdline.dll"); else mir_wstrcat(pluginPath, L"plugins\\cmdline.dll"); @@ -161,7 +161,7 @@ void FillSharedDataStruct(PCommand command, wchar_t *arguments[], int count) sdCmdLine->cArguments = count; sdCmdLine->command = *command; *sdCmdLine->reply.message = 0; - sdCmdLine->reply.code =-1; + sdCmdLine->reply.code = -1; } void ProcessConsoleCommand(PCommand command, wchar_t *arguments[], int count, PReply reply) -- cgit v1.2.3