fix: Hidden bugs in IOCPClient and CTalkManager

This commit is contained in:
yuanyuanxiang
2025-01-01 18:36:44 +08:00
parent 66923b8807
commit c597af3335
6 changed files with 36 additions and 7 deletions

View File

@@ -133,6 +133,14 @@ int main(int argc, const char *argv[])
}
printf("[server] %s:%d\n", g_SETTINGS.ServerIP(), g_SETTINGS.ServerPort());
// <20><>ȡ<EFBFBD><C8A1>ǰģ<C7B0><C4A3><EFBFBD>ľ<EFBFBD><C4BE><EFBFBD><EFBFBD><EFBFBD>HINSTANCE<43><45>
g_hInstance = GetModuleHandle(NULL);
if (g_hInstance != NULL) {
std::cout << "HINSTANCE: " << g_hInstance << std::endl;
} else {
std::cerr << "Failed to get HINSTANCE" << std::endl;
}
do{
g_bExit = 0;
HANDLE hThread = CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)StartClient,NULL,0,NULL);