summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-08-23 23:24:02 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-08-23 23:24:02 +0300
commit42de6a93d3cdb10eb775113b8a6f3a69c78c82c4 (patch)
tree549ddc9a1b25e435d29bef55cc2a1b8ee313546b
parent4149de1811ba25b05be7dde30d9cc0dca5607ff7 (diff)
this code isn't needed anymore
-rw-r--r--plugins/MimCmd/src/MimCmd.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/plugins/MimCmd/src/MimCmd.cpp b/plugins/MimCmd/src/MimCmd.cpp
index 91271d17ae..5b7bde1b96 100644
--- a/plugins/MimCmd/src/MimCmd.cpp
+++ b/plugins/MimCmd/src/MimCmd.cpp
@@ -54,29 +54,6 @@ void ShowVersion()
int wmain(int argc, wchar_t *argv[])
{
- wchar_t wszPath[MAX_PATH];
- wcsncpy_s(wszPath, argv[0], _TRUNCATE);
-
- // if current dir isn't set
- for (int i = lstrlenW(wszPath); i >= 0; i--)
- if (wszPath[i] == '\\') {
- wszPath[i] = 0;
- break;
- }
-
- SetCurrentDirectoryW(wszPath);
-
- lstrcatW(wszPath, L"\\libs");
- SetDllDirectoryW(wszPath);
-
-#ifdef _DEBUG
- lstrcatW(wszPath, L"\\ucrtbased.dll");
-#else
- lstrcatW(wszPath, L"\\ucrtbase.dll");
-#endif
- LoadLibraryW(wszPath);
-
- ////////////////////////////////////////////////////////////////////////////////////////
_setmode(_fileno(stdout), _O_U16TEXT);
if (argc == 2 && !wcscmp(argv[1], L"-v")) {
ShowVersion();