From a37c5005c780aa19c2b46649d28f697bdc0837a1 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Fri, 29 Jul 2005 23:04:48 +0000 Subject: [PATCH] make the telProcessNetwork() thread function STDCALL! svn path=/trunk/; revision=16888 --- reactos/apps/utils/net/telnet/src/tnclass.cpp | 2 +- reactos/apps/utils/net/telnet/src/ttelhndl.cpp | 4 ++-- reactos/apps/utils/net/telnet/src/ttelhndl.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/reactos/apps/utils/net/telnet/src/tnclass.cpp b/reactos/apps/utils/net/telnet/src/tnclass.cpp index 455c5477f34..5894040586b 100644 --- a/reactos/apps/utils/net/telnet/src/tnclass.cpp +++ b/reactos/apps/utils/net/telnet/src/tnclass.cpp @@ -206,7 +206,7 @@ int Telnet::Open(const char *szHost1, const char *strPort1){ 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); diff --git a/reactos/apps/utils/net/telnet/src/ttelhndl.cpp b/reactos/apps/utils/net/telnet/src/ttelhndl.cpp index cdbb1f7acea..1b38d397374 100644 --- a/reactos/apps/utils/net/telnet/src/ttelhndl.cpp +++ b/reactos/apps/utils/net/telnet/src/ttelhndl.cpp @@ -478,8 +478,8 @@ char* TTelnetHandler::ParseBuffer(char* pszBuffer, char* pszBufferEnd){ // 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); } diff --git a/reactos/apps/utils/net/telnet/src/ttelhndl.h b/reactos/apps/utils/net/telnet/src/ttelhndl.h index 5208f869867..ad4ec627ebc 100644 --- a/reactos/apps/utils/net/telnet/src/ttelhndl.h +++ b/reactos/apps/utils/net/telnet/src/ttelhndl.h @@ -4,7 +4,7 @@ #include "tparser.h" #include "tnetwork.h" -DWORD telProcessNetwork(LPVOID pvParams); +DWORD WINAPI telProcessNetwork(LPVOID lpParameter); class TTelnetHandler { private: