make the telProcessNetwork() thread function STDCALL!

svn path=/trunk/; revision=16888
This commit is contained in:
Thomas Bluemel 2005-07-29 23:04:48 +00:00
parent 62e33ea5ff
commit a37c5005c7
3 changed files with 4 additions and 4 deletions

View file

@ -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);

View file

@ -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);
}

View file

@ -4,7 +4,7 @@
#include "tparser.h"
#include "tnetwork.h"
DWORD telProcessNetwork(LPVOID pvParams);
DWORD WINAPI telProcessNetwork(LPVOID lpParameter);
class TTelnetHandler {
private: