X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7ca19ddbb83f51910a42e3059ceb2bb3c855f48c..e77cba1a9c2085b15789bbdc3d38697c4670d2a7:/src/msw/timer.cpp diff --git a/src/msw/timer.cpp b/src/msw/timer.cpp index 48d24f04d0..9442d09a5b 100644 --- a/src/msw/timer.cpp +++ b/src/msw/timer.cpp @@ -38,7 +38,7 @@ // define a hash containing all the timers: it is indexed by timer id and // contains the corresponding timer -WX_DECLARE_HASH_MAP(unsigned long, wxMSWTimerImpl *, wxIntegerHash, wxIntegerEqual, +WX_DECLARE_HASH_MAP(WPARAM, wxMSWTimerImpl *, wxIntegerHash, wxIntegerEqual, wxTimerMap); // instead of using a global here, wrap it in a static function as otherwise it @@ -173,7 +173,7 @@ LRESULT APIENTRY _EXPORT wxTimerWndProc(HWND hWnd, UINT message, { if ( message == WM_TIMER ) { - wxTimerMap::iterator node = TimerMap().find((unsigned long)wParam); + wxTimerMap::iterator node = TimerMap().find(wParam); wxCHECK_MSG( node != TimerMap().end(), 0, wxT("bogus timer id in wxTimerProc") );