Removed incorrect ExpandEnvironmentStrings() error.
authorIain Patterson <me@iain.cx>
Fri, 19 Nov 2010 07:31:35 +0000 (07:31 +0000)
committerIain Patterson <me@iain.cx>
Fri, 19 Nov 2010 07:31:35 +0000 (07:31 +0000)
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

index 55bd36b..29b4ed2 100644 (file)
@@ -132,7 +132,6 @@ int expand_parameter(HKEY key, char *value, char *data, unsigned long datalen) {
     HeapFree(GetProcessHeap(), 0, buffer);\r
     return 3;\r
   }\r
-  log_event(EVENTLOG_ERROR_TYPE, NSSM_EVENT_EXPANDENVIRONMENTSTRINGS_FAILED, buffer, data, GetLastError(), 0);\r
 \r
   HeapFree(GetProcessHeap(), 0, buffer);\r
   return 0;\r