Commit 910722dd authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

win32/events: fix crash when the window is being reopened

We may receive a stray message with no window attached, we just discard it.

Fixes #18753
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 53d410c3
......@@ -122,9 +122,12 @@ static void MousePressed( event_thread_t *p_event, HWND hwnd, unsigned button );
static void CALLBACK HideMouse(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime)
{
VLC_UNUSED(hwnd); VLC_UNUSED(uMsg); VLC_UNUSED(dwTime);
event_thread_t *p_event = (event_thread_t *)idEvent;
UpdateCursor( p_event, false );
VLC_UNUSED(uMsg); VLC_UNUSED(dwTime);
if (hwnd)
{
event_thread_t *p_event = (event_thread_t *)idEvent;
UpdateCursor( p_event, false );
}
}
static void UpdateCursorMoved( event_thread_t *p_event )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment