Commit eb046652 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

wineandroid: The event list may have been altered by a recursive call, so…

wineandroid: The event list may have been altered by a recursive call, so restart the loop from the beginning. Signed-off-by: 's avatarHuw Davies <huw@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 11d4969b
......@@ -360,6 +360,8 @@ static int process_events( DWORD mask )
}
HeapFree( GetProcessHeap(), 0, event );
count++;
/* next may have been removed by a recursive call, so reset it to the beginning of the list */
next = LIST_ENTRY( event_queue.next, struct java_event, entry );
}
current_event = previous;
return count;
......
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