• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

FFFTPのソースコードです。


Commit MetaInfo

修订版7a44bacac555b6892eb18fb3985acb35b49f0316 (tree)
时间2011-10-24 20:04:00
作者s_kawamoto <s_kawamoto@user...>
Commiters_kawamoto

Log Message

Fix bugs of resetting host on reconnecting.

更改概述

差异

Binary files a/FFFTP_Eng_Release/FFFTP.exe and b/FFFTP_Eng_Release/FFFTP.exe differ
Binary files a/Release/FFFTP.exe and b/Release/FFFTP.exe differ
--- a/connect.c
+++ b/connect.c
@@ -927,24 +927,15 @@ static void SaveCurrentSetToHistory(void)
927927 int ReConnectCmdSkt(void)
928928 {
929929 int Sts;
930- SOCKET s;
931930
932931
933932 // 同時接続対応
934933 // if(CmdCtrlSocket != TrnCtrlSocket)
935-// do_closesocket(TrnCtrlSocket);
936-// TrnCtrlSocket = INVALID_SOCKET;
937- s = TrnCtrlSocket;
934+ if(CmdCtrlSocket != TrnCtrlSocket && TrnCtrlSocket != INVALID_SOCKET)
935+ do_closesocket(TrnCtrlSocket);
938936 TrnCtrlSocket = INVALID_SOCKET;
939- if(CmdCtrlSocket != s && s != INVALID_SOCKET)
940- do_closesocket(s);
941937
942- // 同時接続対応
943-// Sts = ReConnectSkt(&CmdCtrlSocket);
944- s = CmdCtrlSocket;
945- CmdCtrlSocket = INVALID_SOCKET;
946- Sts = ReConnectSkt(&s);
947- CmdCtrlSocket = s;
938+ Sts = ReConnectSkt(&CmdCtrlSocket);
948939
949940 TrnCtrlSocket = CmdCtrlSocket;
950941