summaryrefslogtreecommitdiff
path: root/plugins/Popup/src/popup_wnd2.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-03-18 09:36:20 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-03-18 09:36:20 +0000
commita03fab81e7d29d92d00c4268a8fa45e16ffd84dc (patch)
tree73bd843c6ca905f48075489641b81e8dd46c27b8 /plugins/Popup/src/popup_wnd2.cpp
parent5b365d71c4ae382d93c5ee90c66604e41ab4b1fb (diff)
- beginthread replaced with mir_forkthead
- version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@4088 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Popup/src/popup_wnd2.cpp')
-rw-r--r--plugins/Popup/src/popup_wnd2.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/Popup/src/popup_wnd2.cpp b/plugins/Popup/src/popup_wnd2.cpp
index e14ed3bda9..ba4703f153 100644
--- a/plugins/Popup/src/popup_wnd2.cpp
+++ b/plugins/Popup/src/popup_wnd2.cpp
@@ -186,7 +186,7 @@ PopupWnd2::~PopupWnd2()
void PopupWnd2::startThread()
{
- _beginthread(WindowThread, 0, this);
+ mir_forkthread(WindowThread, this);
}
void PopupWnd2::create()
@@ -1513,7 +1513,6 @@ LRESULT CALLBACK PopupWnd2::WindowProc(HWND hwnd, UINT message, WPARAM wParam, L
void WindowThread(void *arg)
{
- Thread_Push(0);
OleInitialize(NULL); // we may need OLE in this thread for smiley substitution
PopupWnd2 *wnd = (PopupWnd2 *)arg;
@@ -1527,9 +1526,6 @@ void WindowThread(void *arg)
TranslateMessage(&msg);
DispatchMessage(&msg);
}
-
- Thread_Pop();
- _endthread();
}
// Menu Host