]> git.sur5r.net Git - openldap/commitdiff
Fixed bug (my own, rather old too) that causes a crash on exit when ru
authorMark Valence <mrv@openldap.org>
Sun, 11 Mar 2001 05:13:57 +0000 (05:13 +0000)
committerMark Valence <mrv@openldap.org>
Sun, 11 Mar 2001 05:13:57 +0000 (05:13 +0000)
n as a service on NT.

servers/slapd/nt_svc.c

index d81bc68a47ac585054e19388fb77c19b1ffc4a81..40a349ec4a0d90cb6e1aeba1fef28360625330d9 100644 (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 );