From f9a99d7e21e6df478d81c89176e338db4155ed33 Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Fri, 19 Nov 2010 07:31:35 +0000 Subject: [PATCH] Removed incorrect ExpandEnvironmentStrings() error. A log_event() call was inadvertently left in the code causing an error to be set to the eventlog saying that ExpandEnvironmentStrings() had failed when it had actually succeeded. --- registry.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/registry.cpp b/registry.cpp index 55bd36b..29b4ed2 100644 --- a/registry.cpp +++ b/registry.cpp @@ -132,7 +132,6 @@ int expand_parameter(HKEY key, char *value, char *data, unsigned long datalen) { HeapFree(GetProcessHeap(), 0, buffer); return 3; } - log_event(EVENTLOG_ERROR_TYPE, NSSM_EVENT_EXPANDENVIRONMENTSTRINGS_FAILED, buffer, data, GetLastError(), 0); HeapFree(GetProcessHeap(), 0, buffer); return 0; -- 2.7.4