Commit ec33cd69 authored by Josh DuBois's avatar Josh DuBois Committed by Alexandre Julliard

SERVICE_CreateServiceTable still returned TRUE if CreateThread failed.

parent 598412ed
......@@ -114,15 +114,9 @@ static BOOL SERVICE_CreateServiceTable( void )
* when installed
*/
service_thread = INVALID_HANDLE_VALUE;
service_thread = CreateThread( NULL, 0, (LPTHREAD_START_ROUTINE)SERVICE_Loop,
NULL, 0, NULL );
if ( service_thread == INVALID_HANDLE_VALUE )
{
service_thread = 0;
return FALSE;
}
return TRUE;
return (service_thread != 0);
}
/***********************************************************************
......
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