summaryrefslogtreecommitdiff
path: root/plugins/AssocMgr/src/main.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-11-25 23:13:02 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-11-25 23:13:02 +0300
commit4657d391c9f213c788e32347c083f2699aed672e (patch)
tree4c8d0376046ed3eec758534d5cd2f0a97dba48ce /plugins/AssocMgr/src/main.cpp
parent71d2aa24a344c6e45d4632ea99fa1e5006367733 (diff)
more accurate solution for AssocMgr that doesn't change current working directory
Diffstat (limited to 'plugins/AssocMgr/src/main.cpp')
-rw-r--r--plugins/AssocMgr/src/main.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/plugins/AssocMgr/src/main.cpp b/plugins/AssocMgr/src/main.cpp
index 8f2fe1551b..5f7d515073 100644
--- a/plugins/AssocMgr/src/main.cpp
+++ b/plugins/AssocMgr/src/main.cpp
@@ -42,23 +42,6 @@ PLUGININFOEX pluginInfo = {
};
/////////////////////////////////////////////////////////////////////////////////////////
-// if we run here, we're running from the command prompt
-
-static bool bPathSet = false;
-
-FARPROC WINAPI myDliHook(unsigned dliNotify, PDelayLoadInfo)
-{
- if (dliNotify == dliNotePreLoadLibrary && !bPathSet) {
- bPathSet = true;
- SetCurrentDirectoryW(L"Libs");
- LoadLibraryW(L"ucrtbase.dll");
- }
- return NULL;
-}
-
-PfnDliHook __pfnDliNotifyHook2 = &myDliHook;
-
-/////////////////////////////////////////////////////////////////////////////////////////
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD, LPVOID)
{