diff options
Diffstat (limited to 'plugins/MimCmd/src/commands.cpp')
-rwxr-xr-x[-rw-r--r--] | plugins/MimCmd/src/commands.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/MimCmd/src/commands.cpp b/plugins/MimCmd/src/commands.cpp index 10a437e383..a336784e76 100644..100755 --- a/plugins/MimCmd/src/commands.cpp +++ b/plugins/MimCmd/src/commands.cpp @@ -51,9 +51,12 @@ int ConnectToMiranda() SetEnvironmentVariable(L"PATH", ptszVal);
delete[] ptszVal;
- wchar_t pluginPath[1024];
+ wchar_t pluginPath[1024] = {0};
GetMirandaFolder(pluginPath, _countof(pluginPath));
- mir_wstrcat(pluginPath, L"\\plugins\\cmdline.dll");
+ if(pluginPath[0])
+ mir_wstrcat(pluginPath, L"\\plugins\\cmdline.dll");
+ else
+ mir_wstrcat(pluginPath, L"plugins\\cmdline.dll");
ListCommands = nullptr;
|