mirror of
https://github.com/reactos/reactos.git
synced 2026-07-02 06:44:37 +08:00
Don't display exit code for none fatal info
Display name of path we were trying to open if opening fails svn path=/trunk/; revision=19255
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user