2
0
Prechádzať zdrojové kódy

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.
Iain Patterson 13 rokov pred
rodič
commit
f9a99d7e21
1 zmenil súbory, kde vykonal 0 pridanie a 1 odobranie
  1. 0 1
      registry.cpp

+ 0 - 1
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;