Commit 1dac6eac authored by François Gouget's avatar François Gouget Committed by Alexandre Julliard

SERVICE_AddObject check for NULL handles in addition to

INVALID_HANDLE_VALUE.
parent 4b4f69ad
......@@ -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;
......
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