Skip to content
Snippets Groups Projects
Commit 1dac6eac authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard
Browse files

SERVICE_AddObject check for NULL handles in addition to

INVALID_HANDLE_VALUE.
parent 4b4f69ad
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment