• R/O
  • HTTP
  • SSH
  • HTTPS

提交

Frequently used words (click to add to your profile)

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

Loweynet


Commit MetaInfo

修订版1c25e2b21eab24d2267f6e565c44dfc4e618350e (tree)
时间2014-11-02 11:26:40
作者s_kawamoto <s_kawamoto@user...>
Commiters_kawamoto

Log Message

Fix bugs of error handling for file transfer.

更改概述

差异

Binary files a/FFFTP_Eng_Release/FFFTP.exe and b/FFFTP_Eng_Release/FFFTP.exe differ
Binary files a/FFFTP_Eng_Release_64/FFFTP.exe and b/FFFTP_Eng_Release_64/FFFTP.exe differ
Binary files a/Release/FFFTP.exe and b/Release/FFFTP.exe differ
Binary files a/Release_64/FFFTP.exe and b/Release_64/FFFTP.exe differ
--- a/ftpproc.c
+++ b/ftpproc.c
@@ -3791,17 +3791,20 @@ void NoopProc(int Force)
37913791 void AbortRecoveryProc(void)
37923792 {
37933793 CancelFlg = NO;
3794- if(AskReuseCmdSkt() == NO || AskShareProh() == YES || AskTransferNow() == NO)
3794+ if(AskConnecting() == YES && AskUserOpeDisabled() == NO)
37953795 {
3796- if(AskErrorReconnect() == YES)
3796+ if(AskReuseCmdSkt() == NO || AskShareProh() == YES || AskTransferNow() == NO)
37973797 {
3798- DisableUserOpe();
3799- ReConnectCmdSkt();
3800- GetRemoteDirForWnd(CACHE_REFRESH, &CancelFlg);
3801- EnableUserOpe();
3798+ if(AskErrorReconnect() == YES)
3799+ {
3800+ DisableUserOpe();
3801+ ReConnectCmdSkt();
3802+ GetRemoteDirForWnd(CACHE_REFRESH, &CancelFlg);
3803+ EnableUserOpe();
3804+ }
3805+ else
3806+ RemoveReceivedData(AskCmdCtrlSkt());
38023807 }
3803- else
3804- RemoveReceivedData(AskCmdCtrlSkt());
38053808 }
38063809 return;
38073810 }
--- a/main.c
+++ b/main.c
@@ -1167,7 +1167,7 @@ static LRESULT CALLBACK FtpWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARA
11671167 case WM_COMMAND :
11681168 // 同時接続対応
11691169 // 中断後に受信バッファに応答が残っていると次のコマンドの応答が正しく処理できない
1170- if(AskUserOpeDisabled() == NO && CancelFlg == YES)
1170+ if(CancelFlg == YES)
11711171 AbortRecoveryProc();
11721172 switch(LOWORD(wParam))
11731173 {