X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=settings.cpp;h=c83abb13b646a57869c48ca12343f8f35843893f;hb=4afcd865015c53c91a9cf883bdabde5153f80436;hp=7340b1ca96f3e7048fb670d6fc820a21cedbd174;hpb=9c3fca1343f359c2969a701629bacde99a27cc4f;p=nssm.git 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; }