werror: replace WERR_BADFILE with WERR_FILE_NOT_FOUND in source3/services/svc_winreg_...
[amitay/samba.git] / source3 / services / svc_winreg_glue.c
index 8a0d619416be9fe7ad2ce1f308f58b1fe33c6cd2..8e8fa21edc7f222e0233524b183050e21c8c5cc3 100644 (file)
@@ -127,7 +127,7 @@ struct security_descriptor *svcctl_get_secdesc(TALLOC_CTX *mem_ctx,
                          "%s\n", nt_errstr(status)));
                return NULL;
        }
-       if (W_ERROR_EQUAL(result, WERR_BADFILE)) {
+       if (W_ERROR_EQUAL(result, WERR_FILE_NOT_FOUND)) {
                goto fallback_to_default_sd;
        } else if (!W_ERROR_IS_OK(result)) {
                DEBUG(2, ("svcctl_get_secdesc: error getting value 'Security': "