Author: gedmurphy
Date: Tue Sep 2 10:21:13 2008
New Revision: 35871
URL:
http://svn.reactos.org/svn/reactos?rev=35871&view=rev
Log:
Fix return value so we exit ServerMain correctly, thus we now see all log until death
Modified:
trunk/reactos/base/services/tcpsvcs/tcpsvcs.c
Modified: trunk/reactos/base/services/tcpsvcs/tcpsvcs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/tcpsvcs/tcps…
==============================================================================
--- trunk/reactos/base/services/tcpsvcs/tcpsvcs.c [iso-8859-1] (original)
+++ trunk/reactos/base/services/tcpsvcs/tcpsvcs.c [iso-8859-1] Tue Sep 2 10:21:13 2008
@@ -94,8 +94,9 @@
if (hThread[i] == NULL)
{
- _swprintf(buf, L"\nFailed to start %s server\n",
Services[i].lpName);
+ _swprintf(buf, L"\nError creating %s server thread\n",
Services[i].lpName);
LogEvent(buf, GetLastError(), 0, LOG_ALL);
+ return FALSE;
}
UpdateStatus(pServInfo, 0, 1);
@@ -116,7 +117,7 @@
LogEvent(L"Detaching Winsock2", 0, 0, LOG_FILE);
WSACleanup();
- return 0;
+ return TRUE;
}
VOID WINAPI
@@ -188,6 +189,7 @@
if (!CreateServers(&servInfo))
{
+ LogEvent(L"Error creating servers", GetLastError(), 1, LOG_ALL);
servInfo.servStatus.dwServiceSpecificExitCode = 1;
UpdateStatus(&servInfo, SERVICE_STOPPED, 0);
return;