mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-26 19:42:33 -06:00
event notifier: Fix setup for win32
The event notifier state is only reset by test_and_clear. But we created the windows event object with auto-reset, which subtly swallowed events. Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
264ac41ca1
commit
e9bff10f8d
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
int event_notifier_init(EventNotifier *e, int active)
|
int event_notifier_init(EventNotifier *e, int active)
|
||||||
{
|
{
|
||||||
e->event = CreateEvent(NULL, FALSE, FALSE, NULL);
|
e->event = CreateEvent(NULL, TRUE, FALSE, NULL);
|
||||||
assert(e->event);
|
assert(e->event);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue