diff options
Diffstat (limited to 'source3/services')
-rw-r--r-- | source3/services/svc_rcinit.c | 6 | ||||
-rw-r--r-- | source3/services/svc_winreg_glue.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source3/services/svc_rcinit.c b/source3/services/svc_rcinit.c index 199e5f12ce1..a47931d63b6 100644 --- a/source3/services/svc_rcinit.c +++ b/source3/services/svc_rcinit.c @@ -30,7 +30,7 @@ static WERROR rcinit_stop( const char *service, struct SERVICE_STATUS *status ) if (asprintf(&command, "%s/%s/%s stop", get_dyn_MODULESDIR(), SVCCTL_SCRIPT_DIR, service) < 0) { - return WERR_NOMEM; + return WERR_NOT_ENOUGH_MEMORY; } /* we've already performed the access check when the service was opened */ @@ -64,7 +64,7 @@ static WERROR rcinit_start( const char *service ) if (asprintf(&command, "%s/%s/%s start", get_dyn_MODULESDIR(), SVCCTL_SCRIPT_DIR, service) < 0) { - return WERR_NOMEM; + return WERR_NOT_ENOUGH_MEMORY; } /* we've already performed the access check when the service was opened */ @@ -91,7 +91,7 @@ static WERROR rcinit_status( const char *service, struct SERVICE_STATUS *status if (asprintf(&command, "%s/%s/%s status", get_dyn_MODULESDIR(), SVCCTL_SCRIPT_DIR, service) < 0) { - return WERR_NOMEM; + return WERR_NOT_ENOUGH_MEMORY; } /* we've already performed the access check when the service was opened */ diff --git a/source3/services/svc_winreg_glue.c b/source3/services/svc_winreg_glue.c index 8e8fa21edc7..7d7871d8884 100644 --- a/source3/services/svc_winreg_glue.c +++ b/source3/services/svc_winreg_glue.c @@ -203,7 +203,7 @@ bool svcctl_set_secdesc(struct messaging_context *msg_ctx, wkey.name = talloc_asprintf(tmp_ctx, "%s\\Security", key); if (wkey.name == NULL) { - result = WERR_NOMEM; + result = WERR_NOT_ENOUGH_MEMORY; goto done; } |