From 4afcd865015c53c91a9cf883bdabde5153f80436 Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Mon, 6 Jan 2014 16:52:16 +0000 Subject: [PATCH] Fixed message when RegSetValueEx() fails. We were incorrectly displaying the error message associated with RegDeleteValue(). --- messages.mc | Bin 120410 -> 121070 bytes settings.cpp | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/messages.mc b/messages.mc index 28d21375f760f1fa1fb3ff5e5eac8ed6dc51f603..20e593a2d2bb2df5207c4da32decb584bef934f5 100644 GIT binary patch delta 145 zcmcb$hW*_}_6>77jVH+HV8}r diff --git a/settings.cpp b/settings.cpp index 7340b1c..c83abb1 100644 --- a/settings.cpp +++ b/settings.cpp @@ -145,7 +145,7 @@ static int setting_set_exit_action(const TCHAR *service_name, void *param, const if (! _tcsnicmp((const TCHAR *) action_string, exit_action_strings[i], ACTION_LEN)) { if (default_value && str_equiv(action_string, (TCHAR *) default_value)) ret = 0; if (RegSetValueEx(key, code, 0, REG_SZ, (const unsigned char *) action_string, (unsigned long) (_tcslen(action_string) + 1) * sizeof(TCHAR)) != ERROR_SUCCESS) { - print_message(stderr, NSSM_MESSAGE_REGDELETEVALUE_FAILED, code, service_name, error_string(GetLastError())); + print_message(stderr, NSSM_MESSAGE_SETVALUE_FAILED, code, service_name, error_string(GetLastError())); RegCloseKey(key); return -1; } -- 2.7.4