mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
SERVICE_CreateServiceTable still returned TRUE if CreateThread failed.
This commit is contained in:
parent
598412ed6a
commit
ec33cd6959
1 changed files with 1 additions and 7 deletions
|
@ -114,15 +114,9 @@ static BOOL SERVICE_CreateServiceTable( void )
|
||||||
* when installed
|
* when installed
|
||||||
*/
|
*/
|
||||||
service_thread = INVALID_HANDLE_VALUE;
|
service_thread = INVALID_HANDLE_VALUE;
|
||||||
|
|
||||||
service_thread = CreateThread( NULL, 0, (LPTHREAD_START_ROUTINE)SERVICE_Loop,
|
service_thread = CreateThread( NULL, 0, (LPTHREAD_START_ROUTINE)SERVICE_Loop,
|
||||||
NULL, 0, NULL );
|
NULL, 0, NULL );
|
||||||
if ( service_thread == INVALID_HANDLE_VALUE )
|
return (service_thread != 0);
|
||||||
{
|
|
||||||
service_thread = 0;
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
return TRUE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
|
|
Loading…
Reference in a new issue