Loweynet
修订版 | 1c25e2b21eab24d2267f6e565c44dfc4e618350e (tree) |
---|---|
时间 | 2014-11-02 11:26:40 |
作者 | s_kawamoto <s_kawamoto@user...> |
Commiter | s_kawamoto |
Fix bugs of error handling for file transfer.
@@ -3791,17 +3791,20 @@ void NoopProc(int Force) | ||
3791 | 3791 | void AbortRecoveryProc(void) |
3792 | 3792 | { |
3793 | 3793 | CancelFlg = NO; |
3794 | - if(AskReuseCmdSkt() == NO || AskShareProh() == YES || AskTransferNow() == NO) | |
3794 | + if(AskConnecting() == YES && AskUserOpeDisabled() == NO) | |
3795 | 3795 | { |
3796 | - if(AskErrorReconnect() == YES) | |
3796 | + if(AskReuseCmdSkt() == NO || AskShareProh() == YES || AskTransferNow() == NO) | |
3797 | 3797 | { |
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()); | |
3802 | 3807 | } |
3803 | - else | |
3804 | - RemoveReceivedData(AskCmdCtrlSkt()); | |
3805 | 3808 | } |
3806 | 3809 | return; |
3807 | 3810 | } |
@@ -1167,7 +1167,7 @@ static LRESULT CALLBACK FtpWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARA | ||
1167 | 1167 | case WM_COMMAND : |
1168 | 1168 | // 同時接続対応 |
1169 | 1169 | // 中断後に受信バッファに応答が残っていると次のコマンドの応答が正しく処理できない |
1170 | - if(AskUserOpeDisabled() == NO && CancelFlg == YES) | |
1170 | + if(CancelFlg == YES) | |
1171 | 1171 | AbortRecoveryProc(); |
1172 | 1172 | switch(LOWORD(wParam)) |
1173 | 1173 | { |