fix: #51 Different function calling convention

This commit is contained in:
yuanyuanxiang
2025-03-30 20:18:18 +08:00
parent 0ec02402e3
commit 53f2bbed73
16 changed files with 29 additions and 63 deletions

View File

@@ -143,7 +143,7 @@ int main(int argc, const char *argv[])
do{
g_bExit = 0;
HANDLE hThread = CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)StartClient,NULL,0,NULL);
HANDLE hThread = CreateThread(NULL,0,StartClient,NULL,0,NULL);
WaitForSingleObject(hThread, INFINITE);
CloseHandle(hThread);
@@ -186,7 +186,7 @@ extern "C" __declspec(dllexport) void TestRun(char* szServerIP,int uPort)
}
g_SETTINGS.SetType(CLIENT_TYPE_DLL);
HANDLE hThread = CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)StartClient,NULL,0,NULL);
HANDLE hThread = CreateThread(NULL,0,StartClient,NULL,0,NULL);
if (hThread == NULL) {
return;
}