diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2010-03-10 11:38:39 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-03-17 11:14:52 -0500 |
commit | 291defbcda4dbcd3d7bfdd800c395cff66bd9faf (patch) | |
tree | ecd65423c17b4b748c5d889c1cb5be0d77a90825 /vl.c | |
parent | 9aea10297f34c33ee2225426c12be474a797a13b (diff) | |
download | qemu-291defbcda4dbcd3d7bfdd800c395cff66bd9faf.tar.gz qemu-291defbcda4dbcd3d7bfdd800c395cff66bd9faf.tar.bz2 qemu-291defbcda4dbcd3d7bfdd800c395cff66bd9faf.zip |
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>
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1408,7 +1408,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", |