aboutsummaryrefslogtreecommitdiff
path: root/CruUI/timer.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-09-12 23:09:13 +0800
committercrupest <crupest@outlook.com>2018-09-12 23:09:13 +0800
commit5f75c4f4f6736ff8efa87beab715fd9a044f666c (patch)
treea67dd8d9f6af0ff7b93776c1e3bcc2816a2250dd /CruUI/timer.cpp
parente2dab3893a8be43de0e50587c85df9e11abf87fe (diff)
downloadcru-5f75c4f4f6736ff8efa87beab715fd9a044f666c.tar.gz
cru-5f75c4f4f6736ff8efa87beab715fd9a044f666c.tar.bz2
cru-5f75c4f4f6736ff8efa87beab715fd9a044f666c.zip
...
Never use PostMessage with hwnd as null!!!!!!!!!!!!!!!!!!!!!!!!
Diffstat (limited to 'CruUI/timer.cpp')
-rw-r--r--CruUI/timer.cpp2
1 files changed, 1 insertions, 1 deletions
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