Re: [Qemu-devel] [PATCH] main-loop: Fix SetEvent() on uninitialized handle on win32

2012-02-01 Thread Anthony Liguori
On 01/20/2012 07:08 PM, Michael Roth wrote: The __attribute__((constructor)) init_main_loop() automatically get called if qemu-tool.o is linked in. On win32, this leads to a qemu_notify_event() call which attempts to SetEvent() on a HANDLE that won't be initialized until qemu_init_main_loop() is

Re: [Qemu-devel] [PATCH] main-loop: Fix SetEvent() on uninitialized handle on win32

2012-01-20 Thread Paolo Bonzini
On 01/21/2012 02:08 AM, Michael Roth wrote: The __attribute__((constructor)) init_main_loop() automatically get called if qemu-tool.o is linked in. On win32, this leads to a qemu_notify_event() call which attempts to SetEvent() on a HANDLE that won't be initialized until qemu_init_main_loop() is

[Qemu-devel] [PATCH] main-loop: Fix SetEvent() on uninitialized handle on win32

2012-01-20 Thread Michael Roth
The __attribute__((constructor)) init_main_loop() automatically get called if qemu-tool.o is linked in. On win32, this leads to a qemu_notify_event() call which attempts to SetEvent() on a HANDLE that won't be initialized until qemu_init_main_loop() is manually called, breaking qemu-tools.o program