Fixed bug (my own, rather old too) that causes a crash on exit when ru

n as a service on NT.
This commit is contained in:
Mark Valence 2001-03-11 05:13:57 +00:00
parent 80ab3d6a6e
commit 4b87d9c7d2

View file

@ -103,7 +103,7 @@ int main( int argc, LPTSTR *argv )
puts( "starting slapd..." );
if (svc_installed(SERVICE_NAME, NULL) != 0
|| svc_running(SERVICE_NAME) == 1
|| StartServiceCtrlDispatcher(DispatchTable) != 0 )
|| StartServiceCtrlDispatcher(DispatchTable) == 0 )
{
is_NT_Service = 0;
ServiceMain( argc, argv );