SERVICE_AddObject check for NULL handles in addition to
INVALID_HANDLE_VALUE.
This commit is contained in:
parent
4b4f69ad38
commit
1dac6eac63
|
@ -138,7 +138,7 @@ HANDLE SERVICE_AddObject( HANDLE object,
|
|||
SERVICE *s;
|
||||
HANDLE handle;
|
||||
|
||||
if ( object == INVALID_HANDLE_VALUE || !callback )
|
||||
if ( !object || object == INVALID_HANDLE_VALUE || !callback )
|
||||
return INVALID_HANDLE_VALUE;
|
||||
|
||||
if (!service_thread && !SERVICE_CreateServiceTable()) return INVALID_HANDLE_VALUE;
|
||||
|
|
Loading…
Reference in New Issue