Skip to content
Snippets Groups Projects
user avatar
Paolo Bonzini authored
If ret is WAIT_TIMEOUT and there was an event returned by select(),
we can write to a location after the end of the array.  But in
that case we can retry the WaitForMultipleObjects call with the
same set of events, so just move the event[ret - WAIT_OBJECT_0]
assignment inside the existin conditional.

Reported-by: default avatarTeLeMan <geleman@gmail.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Reviewed-by: default avatarTeLeMan <geleman@gmail.com>
Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
a90d411e
History
Name Last commit Last update