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>
This commit is contained in:
parent
11d4969baa
commit
eb04665281
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue