Commit ee811d89 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

winedevice: Handle failure of RegisterServiceCtrlHandlerExW.

parent 4dc1ee05
......@@ -192,6 +192,8 @@ static void WINAPI ServiceMain( DWORD argc, LPWSTR *argv )
stop_event = CreateEventW( NULL, TRUE, FALSE, NULL );
service_handle = RegisterServiceCtrlHandlerExW( driver_name, service_handler, NULL );
if (!service_handle)
return;
status.dwServiceType = SERVICE_WIN32;
status.dwCurrentState = SERVICE_START_PENDING;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment