Loweynet
Revision | 13b044809d800141bd342eed396325f460c20d8b (tree) |
---|---|
Zeit | 2011-10-14 17:35:34 |
Autor | s_kawamoto <s_kawamoto@user...> |
Commiter | s_kawamoto |
Update to 391e3074b3447b3a0d5f9153eb82cb87c89dfede (1.98a) about bug fixes.
@@ -2019,7 +2019,10 @@ static void DispDownloadFinishMsg(TRANSPACKET *Pkt, int iRetCode) | ||
2019 | 2019 | // else if((Pkt->hWndTrans != NULL) && (TimeStart != 0)) |
2020 | 2020 | // SetTaskMsg(MSGJPN102, TimeStart, Pkt->ExistSize/TimeStart); |
2021 | 2021 | else if((Pkt->hWndTrans != NULL) && (TimeStart[Pkt->ThreadCount] != 0)) |
2022 | - SetTaskMsg(MSGJPN102, TimeStart[Pkt->ThreadCount], Pkt->ExistSize/TimeStart[Pkt->ThreadCount]); | |
2022 | + // "0 B/S"と表示されるバグを修正 | |
2023 | + // 原因は%dにあたる部分に64ビット値が渡されているため | |
2024 | +// SetTaskMsg(MSGJPN102, TimeStart[Pkt->ThreadCount], Pkt->ExistSize/TimeStart[Pkt->ThreadCount]); | |
2025 | + SetTaskMsg(MSGJPN102, (LONG)TimeStart[Pkt->ThreadCount], (LONG)(Pkt->ExistSize/TimeStart[Pkt->ThreadCount])); | |
2023 | 2026 | else |
2024 | 2027 | SetTaskMsg(MSGJPN103, Pkt->ExistSize); |
2025 | 2028 | } |
@@ -198,7 +198,7 @@ BOOL AttachSSL(SOCKET s) | ||
198 | 198 | while(pSSL_connect(*ppSSL) != 1) |
199 | 199 | { |
200 | 200 | LeaveCriticalSection(&g_OpenSSLLock); |
201 | - if(g_pOpenSSLTimeoutCallback() || timeGetTime() - Time >= g_OpenSSLTimeout) | |
201 | + if(g_pOpenSSLTimeoutCallback() || (g_OpenSSLTimeout > 0 && timeGetTime() - Time >= g_OpenSSLTimeout)) | |
202 | 202 | { |
203 | 203 | DetachSSL(s); |
204 | 204 | r = FALSE; |