From 42de6a93d3cdb10eb775113b8a6f3a69c78c82c4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 23 Aug 2018 23:24:02 +0300 Subject: this code isn't needed anymore --- plugins/MimCmd/src/MimCmd.cpp | 23 ----------------------- 1 file changed, 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(); -- cgit v1.2.3