wineandroid: The event list may have been altered by a recursive call, so restart the loop from the beginning.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Huw Davies 2017-06-07 16:09:14 +01:00 committed by Alexandre Julliard
parent 11d4969baa
commit eb04665281
1 changed files with 2 additions and 0 deletions

View File

@ -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;