Skip to content

Commit 36664e2

Browse files
committed
Revert win32 fix for timer
1 parent 58877c0 commit 36664e2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

JuceLibraryCode/modules/juce_core/native/juce_PlatformTimer_windows.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,9 @@ class PlatformTimer final
3333
{
3434
jassert (newIntervalMs > 0);
3535

36-
const auto callback = [] (UINT, UINT, DWORD_PTR context, DWORD_PTR, DWORD_PTR) -> void __stdcall
36+
const auto callback = [] (UINT, UINT, DWORD_PTR context, DWORD_PTR, DWORD_PTR)
3737
{
38-
auto* listener = reinterpret_cast<PlatformTimerListener*> (context);
39-
if (listener != nullptr)
40-
listener->handleTimerCallback();
38+
reinterpret_cast<PlatformTimerListener*> (context)->onTimerExpired();
4139
};
4240

4341
timerId = timeSetEvent ((UINT) newIntervalMs, 1, callback, (DWORD_PTR) &listener, TIME_PERIODIC | TIME_CALLBACK_FUNCTION);

0 commit comments

Comments
 (0)