From 4b87d9c7d2c24b2b174dc0d55832b3b8124ee3ef Mon Sep 17 00:00:00 2001 From: Mark Valence Date: Sun, 11 Mar 2001 05:13:57 +0000 Subject: [PATCH] Fixed bug (my own, rather old too) that causes a crash on exit when ru n as a service on NT. --- servers/slapd/nt_svc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.39.5