advapi32: Do not terminate a regular program if it calls StartServiceCtrlDispatcher [try 2]

Alexander Morozov amorozov at
Mon Apr 1 13:57:16 CDT 2013

Change in try 2:
OpenSCManager and service_open_pipe calls are moved to 
to get rid of code duplication.

This patch fixes bug #33255.

Now service_run_main_thread calls ExitProcess when 
returns because of service_open_pipe failure. I moved service_open_pipe
to StartServiceCtrlDispatcher to prevent process exiting and return
appropriate error
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-advapi32-Do-not-terminate-a-regular-program-if-it-cal.txt
Type: text/x-pascal
Size: 6101 bytes
Desc: not available
URL: <>

More information about the wine-patches mailing list