Fix timer crash

This commit is contained in:
Magnus Norddahl 2025-02-16 19:03:15 +01:00
commit c4c249cd7c

View file

@ -682,7 +682,8 @@ static void CALLBACK Win32TimerCallback(HWND handle, UINT message, UINT_PTR time
auto it = Win32DisplayWindow::Timers.find(timerID);
if (it != Win32DisplayWindow::Timers.end())
{
it->second();
auto callback = it->second;
callback();
}
}