mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34: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);
|
||||
|
||||
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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include "tparser.h"
|
||||
#include "tnetwork.h"
|
||||
|
||||
DWORD telProcessNetwork(LPVOID pvParams);
|
||||
DWORD WINAPI telProcessNetwork(LPVOID lpParameter);
|
||||
|
||||
class TTelnetHandler {
|
||||
private:
|
||||
|
|
Loading…
Reference in a new issue