mirror of https://github.com/xemu-project/xemu.git
fix error in win32_rearm_timer
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> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
9aea10297f
commit
291defbcda
2
vl.c
2
vl.c
|
@ -1408,7 +1408,7 @@ static void win32_rearm_timer(struct qemu_alarm_timer *t)
|
||||||
data->period,
|
data->period,
|
||||||
host_alarm_handler,
|
host_alarm_handler,
|
||||||
(DWORD)t,
|
(DWORD)t,
|
||||||
TIME_ONESHOT | TIME_PERIODIC);
|
TIME_ONESHOT | TIME_CALLBACK_FUNCTION);
|
||||||
|
|
||||||
if (!data->timerId) {
|
if (!data->timerId) {
|
||||||
fprintf(stderr, "Failed to re-arm win32 alarm timer %ld\n",
|
fprintf(stderr, "Failed to re-arm win32 alarm timer %ld\n",
|
||||||
|
|
Loading…
Reference in New Issue