SERVICE_AddObject check for NULL handles in addition to

INVALID_HANDLE_VALUE.
This commit is contained in:
François Gouget 2001-01-09 20:51:36 +00:00 committed by Alexandre Julliard
parent 4b4f69ad38
commit 1dac6eac63
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ HANDLE SERVICE_AddObject( HANDLE object,
SERVICE *s; SERVICE *s;
HANDLE handle; HANDLE handle;
if ( object == INVALID_HANDLE_VALUE || !callback ) if ( !object || object == INVALID_HANDLE_VALUE || !callback )
return INVALID_HANDLE_VALUE; return INVALID_HANDLE_VALUE;
if (!service_thread && !SERVICE_CreateServiceTable()) return INVALID_HANDLE_VALUE; if (!service_thread && !SERVICE_CreateServiceTable()) return INVALID_HANDLE_VALUE;