Don't display exit code for none fatal info
authorGed Murphy <gedmurphy@reactos.org>
Tue, 15 Nov 2005 21:22:00 +0000 (21:22 +0000)
committerGed Murphy <gedmurphy@reactos.org>
Tue, 15 Nov 2005 21:22:00 +0000 (21:22 +0000)
Display name of path we were trying to open if opening fails

svn path=/trunk/; revision=19255

reactos/services/tcpsvcs/qotd.c
reactos/services/tcpsvcs/tcpsvcs.c

index 58739d5..473b62f 100644 (file)
@@ -44,7 +44,10 @@ DWORD WINAPI QotdHandler(VOID* Sock_)
     LogEvent(_T("QOTD: Opening quotes file\n"), 0, FALSE);
     if ((fp = _tfopen(Sys, "r")) == NULL)
     {
-        LogEvent(_T("QOTD: Error opening quote file\n"), 0, TRUE);
+               TCHAR temp[512];
+
+               _stprintf(temp, _T("QOTD: Error opening quote file : %s\n"), Sys);
+        LogEvent(temp, 0, TRUE);
         LogEvent(_T("QOTD: Terminating thread\n"), 0, FALSE);
         ExitThread(-1);
     }
index c0c6674..35637d4 100644 (file)
@@ -260,8 +260,7 @@ LogEvent (LPCTSTR UserMessage, DWORD ExitCode, BOOL PrintErrorMsg)
        }
     else
     {
-               _stprintf(MessageBuffer, _T("\n%s ExitCode = %lu."),
-                       UserMessage, ExitCode);
+               _stprintf(MessageBuffer, _T("\n%s"), UserMessage);
        }
 
        fputs (MessageBuffer, hLogFile);