summaryrefslogtreecommitdiff
path: root/src/mir_core/miranda.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mir_core/miranda.cpp')
-rw-r--r--src/mir_core/miranda.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mir_core/miranda.cpp b/src/mir_core/miranda.cpp
index 856a7394eb..73c5c9d0be 100644
--- a/src/mir_core/miranda.cpp
+++ b/src/mir_core/miranda.cpp
@@ -40,7 +40,12 @@ DWORD mir_tls = 0;
static LRESULT CALLBACK APCWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
- if (msg == WM_NULL) SleepEx(0, TRUE);
+ if (msg == WM_USER+1) {
+ PAPCFUNC pFunc = (PAPCFUNC)wParam;
+ pFunc((ULONG_PTR)lParam);
+ return 0;
+ }
+
if (msg == WM_TIMECHANGE && RecalculateTime)
RecalculateTime();
return DefWindowProc(hwnd, msg, wParam, lParam);