From 5f75c4f4f6736ff8efa87beab715fd9a044f666c Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 12 Sep 2018 23:09:13 +0800 Subject: ... Never use PostMessage with hwnd as null!!!!!!!!!!!!!!!!!!!!!!!! --- CruUI/timer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CruUI/timer.cpp') diff --git a/CruUI/timer.cpp b/CruUI/timer.cpp index 5eb803c7..82a2a0f4 100644 --- a/CruUI/timer.cpp +++ b/CruUI/timer.cpp @@ -21,7 +21,7 @@ namespace cru UINT_PTR TimerManager::CreateTimer(const UINT microseconds, const bool loop, const TimerAction & action) { - auto id = ::SetTimer(nullptr, 0, microseconds, nullptr); + auto id = ::SetTimer(Application::GetInstance()->GetGodWindowHandle(), 0, microseconds, nullptr); if (loop) map_[id] = action; else -- cgit v1.2.3