summaryrefslogtreecommitdiff
path: root/plugins/Popup/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Popup/src')
-rw-r--r--plugins/Popup/src/popup_thread.cpp4
-rw-r--r--plugins/Popup/src/popup_wnd2.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Popup/src/popup_thread.cpp b/plugins/Popup/src/popup_thread.cpp
index 3ee85fa4d3..134e10ba22 100644
--- a/plugins/Popup/src/popup_thread.cpp
+++ b/plugins/Popup/src/popup_thread.cpp
@@ -315,7 +315,7 @@ static void __cdecl PopupThread(void *arg)
}
// Increment Miranda thread counter
- CallService(MS_SYSTEM_THREAD_PUSH, 0, 0);
+ Thread_Push(0);
// Create manager window
DWORD err;
@@ -353,7 +353,7 @@ static void __cdecl PopupThread(void *arg)
ReleaseMutex(hThreadMutex);
// Decrement Miranda thread counter
- CallService(MS_SYSTEM_THREAD_POP, 0, 0);
+ Thread_Pop();
// Ok, now we can kill this thread
_endthread();
diff --git a/plugins/Popup/src/popup_wnd2.cpp b/plugins/Popup/src/popup_wnd2.cpp
index 963e4e4a95..6b9755f532 100644
--- a/plugins/Popup/src/popup_wnd2.cpp
+++ b/plugins/Popup/src/popup_wnd2.cpp
@@ -1818,7 +1818,7 @@ LRESULT CALLBACK PopupWnd2::WindowProc(HWND hwnd, UINT message, WPARAM wParam, L
void WindowThread(void *arg)
{
- CallService(MS_SYSTEM_THREAD_PUSH, 0, 0);
+ Thread_Push(0);
OleInitialize(NULL); // we may need OLE in this thread for smiley substitution
PopupWnd2 *wnd = (PopupWnd2 *)arg;
@@ -1833,7 +1833,7 @@ void WindowThread(void *arg)
DispatchMessage(&msg);
}
- CallService(MS_SYSTEM_THREAD_POP, 0, 0);
+ Thread_Pop();
_endthread();
}