msiexec: Avoid broken pipe error caused by setting SERVICE_STOPPED state twice

Hans Leidekker hans at codeweavers.com
Fri Dec 4 05:44:10 CST 2015


Signed-off-by: Hans Leidekker <hans at codeweavers.com>

I even get a consistent crash if I start the service and wait for the shutdown timeout:

$ WINEDEBUG=+service,+tid wine sc start MSIServer
...
0028:trace:service:service_handle_start L"MSIServer" argsize 11
0018:trace:service:service_wait_for_startup 0x111320
0029:trace:service:service_thread 0x11a750
0029:trace:service:RegisterServiceCtrlHandlerExW L"MSIServer" 0x7eaefad0 0x7eff0f30
0029:trace:service:SetServiceStatus 0x11ab40 10 2 0 0 0 0 0
...
0025:trace:service:service_run_main_thread last user process exited, shutting down (timeout: 5000)
...
wine: Unhandled page fault on read access to 0x00000010 at address 0x7e7d0b2e (thread 0029), starting debugger...
0029:err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x7bc4eade

It's gone after applying this patch.





More information about the wine-patches mailing list