make the telProcessNetwork() thread function STDCALL!
Modified: trunk/reactos/apps/utils/net/telnet/src/tnclass.cpp
Modified: trunk/reactos/apps/utils/net/telnet/src/ttelhndl.cpp
Modified: trunk/reactos/apps/utils/net/telnet/src/ttelhndl.h
_____
Modified: trunk/reactos/apps/utils/net/telnet/src/tnclass.cpp
--- trunk/reactos/apps/utils/net/telnet/src/tnclass.cpp 2005-07-29
23:03:42 UTC (rev 16887)
+++ trunk/reactos/apps/utils/net/telnet/src/tnclass.cpp 2005-07-29
23:04:48 UTC (rev 16888)
@@ -206,7 +206,7 @@
SetConsoleCtrlHandler(ControlEventHandler,
TRUE);
hThread = CreateThread(0, 0,
- (LPTHREAD_START_ROUTINE) telProcessNetwork,
+ telProcessNetwork,
(LPVOID)&ThreadParams, 0, &idThread);
// This helps the display thread a little (Paul Brannan
8/3/98)
SetThreadPriority(hThread,
THREAD_PRIORITY_ABOVE_NORMAL);
_____
Modified: trunk/reactos/apps/utils/net/telnet/src/ttelhndl.cpp
--- trunk/reactos/apps/utils/net/telnet/src/ttelhndl.cpp
2005-07-29 23:03:42 UTC (rev 16887)
+++ trunk/reactos/apps/utils/net/telnet/src/ttelhndl.cpp
2005-07-29 23:04:48 UTC (rev 16888)
@@ -478,8 +478,8 @@
// telProcessNetwork calls the member function TTelnetHandler::Go,
since
// TTelnetHandler::Go is not a static function, and cannot be called
with
// CreateThread(). (Paul Brannan 6/15/98)
-DWORD telProcessNetwork(LPVOID pvParams) {
- TelThreadParams *pParams = (TelThreadParams *)pvParams;
+DWORD WINAPI telProcessNetwork(LPVOID lpParameter) {
+ TelThreadParams *pParams = (TelThreadParams *)lpParameter;
return pParams->TelHandler.Go(&pParams->p);
}
_____
Modified: trunk/reactos/apps/utils/net/telnet/src/ttelhndl.h
--- trunk/reactos/apps/utils/net/telnet/src/ttelhndl.h 2005-07-29
23:03:42 UTC (rev 16887)
+++ trunk/reactos/apps/utils/net/telnet/src/ttelhndl.h 2005-07-29
23:04:48 UTC (rev 16888)
@@ -4,7 +4,7 @@
#include "tparser.h"
#include "tnetwork.h"
-DWORD telProcessNetwork(LPVOID pvParams);
+DWORD WINAPI telProcessNetwork(LPVOID lpParameter);
class TTelnetHandler {
private:
Show replies by date