X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=imports.cpp;h=62571311ef17feb55df5a3a993c995913e420568;hb=1ca188026d2d0b9a379cc1588eee314ca96528ab;hp=18c8bb0372484da8a919bba906ecfb0c10d8d82d;hpb=aece13df3cc7a17d5827cc59fc59c13538b52517;p=nssm.git diff --git a/imports.cpp b/imports.cpp index 18c8bb0..6257131 100644 --- a/imports.cpp +++ b/imports.cpp @@ -36,7 +36,7 @@ FARPROC get_import(HMODULE library, const char *function, unsigned long *error) #else function_name = (TCHAR *) function; #endif - log_event(EVENTLOG_WARNING_TYPE, NSSM_EVENT_GETPROCADDRESS_FAILED, function_name, error_string(*error), 0); + if (*error != ERROR_PROC_NOT_FOUND) log_event(EVENTLOG_WARNING_TYPE, NSSM_EVENT_GETPROCADDRESS_FAILED, function_name, error_string(*error), 0); #ifdef UNICODE if (function_name) HeapFree(GetProcessHeap(), 0, function_name); #endif