mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 01:35:43 +00:00
make the telProcessNetwork() thread function STDCALL!
svn path=/trunk/; revision=16888
This commit is contained in:
parent
62e33ea5ff
commit
a37c5005c7
3 changed files with 4 additions and 4 deletions
|
@ -206,7 +206,7 @@ int Telnet::Open(const char *szHost1, const char *strPort1){
|
||||||
SetConsoleCtrlHandler(ControlEventHandler, TRUE);
|
SetConsoleCtrlHandler(ControlEventHandler, TRUE);
|
||||||
|
|
||||||
hThread = CreateThread(0, 0,
|
hThread = CreateThread(0, 0,
|
||||||
(LPTHREAD_START_ROUTINE) telProcessNetwork,
|
telProcessNetwork,
|
||||||
(LPVOID)&ThreadParams, 0, &idThread);
|
(LPVOID)&ThreadParams, 0, &idThread);
|
||||||
// This helps the display thread a little (Paul Brannan 8/3/98)
|
// This helps the display thread a little (Paul Brannan 8/3/98)
|
||||||
SetThreadPriority(hThread, THREAD_PRIORITY_ABOVE_NORMAL);
|
SetThreadPriority(hThread, THREAD_PRIORITY_ABOVE_NORMAL);
|
||||||
|
|
|
@ -478,8 +478,8 @@ char* TTelnetHandler::ParseBuffer(char* pszBuffer, char* pszBufferEnd){
|
||||||
// telProcessNetwork calls the member function TTelnetHandler::Go, since
|
// telProcessNetwork calls the member function TTelnetHandler::Go, since
|
||||||
// TTelnetHandler::Go is not a static function, and cannot be called with
|
// TTelnetHandler::Go is not a static function, and cannot be called with
|
||||||
// CreateThread(). (Paul Brannan 6/15/98)
|
// CreateThread(). (Paul Brannan 6/15/98)
|
||||||
DWORD telProcessNetwork(LPVOID pvParams) {
|
DWORD WINAPI telProcessNetwork(LPVOID lpParameter) {
|
||||||
TelThreadParams *pParams = (TelThreadParams *)pvParams;
|
TelThreadParams *pParams = (TelThreadParams *)lpParameter;
|
||||||
return pParams->TelHandler.Go(&pParams->p);
|
return pParams->TelHandler.Go(&pParams->p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
#include "tparser.h"
|
#include "tparser.h"
|
||||||
#include "tnetwork.h"
|
#include "tnetwork.h"
|
||||||
|
|
||||||
DWORD telProcessNetwork(LPVOID pvParams);
|
DWORD WINAPI telProcessNetwork(LPVOID lpParameter);
|
||||||
|
|
||||||
class TTelnetHandler {
|
class TTelnetHandler {
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue