From: Mark Valence Date: Sun, 11 Mar 2001 05:13:57 +0000 (+0000) Subject: Fixed bug (my own, rather old too) that causes a crash on exit when ru X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1496 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4b87d9c7d2c24b2b174dc0d55832b3b8124ee3ef;p=openldap Fixed bug (my own, rather old too) that causes a crash on exit when ru n as a service on NT. --- diff --git a/servers/slapd/nt_svc.c b/servers/slapd/nt_svc.c index d81bc68a47..40a349ec4a 100644 --- a/servers/slapd/nt_svc.c +++ b/servers/slapd/nt_svc.c @@ -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 );