Message ID | 1261382970-23251-5-git-send-email-pbonzini@redhat.com |
---|---|
State | New |
Headers | show |
diff --git a/vl.c b/vl.c index 22ec53d..58e57c1 100644 --- a/vl.c +++ b/vl.c @@ -1598,7 +1598,7 @@ static void win32_rearm_timer(struct qemu_alarm_timer *t) data->period, host_alarm_handler, (DWORD)t, - TIME_ONESHOT | TIME_PERIODIC); + TIME_ONESHOT | TIME_CALLBACK_FUNCTION); if (!data->timerId) { fprintf(stderr, "Failed to re-arm win32 alarm timer %ld\n",
The TIME_ONESHOT and TIME_PERIODIC flags are mutually exclusive. The code after the patch matches the flags used in win32_start_timer. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> --- vl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)