diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-17 20:50:08 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-17 20:50:08 +0300 |
commit | 523f3588b6f21adcc4bcf3ec3ffad05e2298863a (patch) | |
tree | 428f9611be9bfdba157f5c2056908ee02c9c7ce6 /plugins/ListeningTo/src/players | |
parent | 11e70d8c4e224d80015fffe0378c53abee5fd824 (diff) |
KeyboardNotify, ListeningTo, MessageState, MirandaG15, MirFox, Msg_Export, MsgPopup, mTextControl => CMPlugin
Diffstat (limited to 'plugins/ListeningTo/src/players')
-rw-r--r-- | plugins/ListeningTo/src/players/generic.cpp | 6 | ||||
-rw-r--r-- | plugins/ListeningTo/src/players/player.cpp | 2 | ||||
-rw-r--r-- | plugins/ListeningTo/src/players/wmp.cpp | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/plugins/ListeningTo/src/players/generic.cpp b/plugins/ListeningTo/src/players/generic.cpp index c4996d763b..309d424b6d 100644 --- a/plugins/ListeningTo/src/players/generic.cpp +++ b/plugins/ListeningTo/src/players/generic.cpp @@ -71,11 +71,11 @@ GenericPlayer::GenericPlayer() WNDCLASS wc = {};
wc.lpfnWndProc = ReceiverWndProc;
- wc.hInstance = hInst;
+ wc.hInstance = g_plugin.getInst();
wc.lpszClassName = MIRANDA_WINDOWCLASS;
RegisterClass(&wc);
- hWnd = CreateWindow(MIRANDA_WINDOWCLASS, LPGENW("Miranda ListeningTo receiver"), 0, 0, 0, 0, 0, nullptr, nullptr, hInst, nullptr);
+ hWnd = CreateWindow(MIRANDA_WINDOWCLASS, LPGENW("Miranda ListeningTo receiver"), 0, 0, 0, 0, 0, nullptr, nullptr, g_plugin.getInst(), nullptr);
}
GenericPlayer::~GenericPlayer()
@@ -88,7 +88,7 @@ GenericPlayer::~GenericPlayer() DestroyWindow(hWnd);
hWnd = nullptr;
- UnregisterClass(MIRANDA_WINDOWCLASS, hInst);
+ UnregisterClass(MIRANDA_WINDOWCLASS, g_plugin.getInst());
singleton = nullptr;
}
diff --git a/plugins/ListeningTo/src/players/player.cpp b/plugins/ListeningTo/src/players/player.cpp index 666f640cf8..23b10f3a8a 100644 --- a/plugins/ListeningTo/src/players/player.cpp +++ b/plugins/ListeningTo/src/players/player.cpp @@ -127,7 +127,7 @@ void CodeInjectionPlayer::InjectCode() // Get the dll path
char dll_path[1024] = { 0 };
- if (!GetModuleFileNameA(hInst, dll_path, _countof(dll_path)))
+ if (!GetModuleFileNameA(g_plugin.getInst(), dll_path, _countof(dll_path)))
return;
char *p = strrchr(dll_path, '\\');
diff --git a/plugins/ListeningTo/src/players/wmp.cpp b/plugins/ListeningTo/src/players/wmp.cpp index c69f288765..6bc244e742 100644 --- a/plugins/ListeningTo/src/players/wmp.cpp +++ b/plugins/ListeningTo/src/players/wmp.cpp @@ -35,11 +35,11 @@ WindowsMediaPlayer::WindowsMediaPlayer() WNDCLASS wc = {};
wc.lpfnWndProc = ReceiverWndProc;
- wc.hInstance = hInst;
+ wc.hInstance = g_plugin.getInst();
wc.lpszClassName = WMP_WINDOWCLASS;
RegisterClass(&wc);
- hWnd = CreateWindow(WMP_WINDOWCLASS, LPGENW("Miranda ListeningTo WMP receiver"), 0, 0, 0, 0, 0, nullptr, nullptr, hInst, nullptr);
+ hWnd = CreateWindow(WMP_WINDOWCLASS, LPGENW("Miranda ListeningTo WMP receiver"), 0, 0, 0, 0, 0, nullptr, nullptr, g_plugin.getInst(), nullptr);
}
WindowsMediaPlayer::~WindowsMediaPlayer()
@@ -52,7 +52,7 @@ WindowsMediaPlayer::~WindowsMediaPlayer() DestroyWindow(hWnd);
hWnd = nullptr;
- UnregisterClass(WMP_WINDOWCLASS, hInst);
+ UnregisterClass(WMP_WINDOWCLASS, g_plugin.getInst());
singleton = nullptr;
}
|