• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

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

Loweynet


Commit MetaInfo

Revision0ae23bd18c4f4de6781bec3a83021fddddae7480 (tree)
Time2012-05-17 00:00:33
Authors_kawamoto <s_kawamoto@user...>
Commiters_kawamoto

Log Message

Fix conditions of sending commands for keep alive.
Fix routines for queuing files.

Change Summary

Incremental Difference

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/common.h
+++ b/common.h
@@ -1662,6 +1662,8 @@ void EraseTmpTransFileList(TRANSPACKET **Base);
16621662 int RemoveTmpTransFileListItem(TRANSPACKET **Base, int Num);
16631663
16641664 void AddTransFileList(TRANSPACKET *Pkt);
1665+// バグ対策
1666+void AddNullTransFileList();
16651667 void AppendTransFileList(TRANSPACKET *Pkt);
16661668 void KeepTransferDialog(int Sw);
16671669 int AskTransferNow(void);
--- a/ftpproc.c
+++ b/ftpproc.c
@@ -314,6 +314,9 @@ void DownloadProc(int ChName, int ForceFile, int All)
314314 // strcpy(Pkt.Cmd, "GOQUIT");
315315 // AddTransFileList(&Pkt);
316316
317+ // バグ対策
318+ AddNullTransFileList();
319+
317320 GoForwardTransWindow();
318321 // KeepTransferDialog(NO);
319322
@@ -427,6 +430,9 @@ void DirectDownloadProc(char *Fname)
427430 // strcpy(Pkt.Cmd, "GOQUIT");
428431 // AddTransFileList(&Pkt);
429432
433+ // バグ対策
434+ AddNullTransFileList();
435+
430436 GoForwardTransWindow();
431437 // KeepTransferDialog(NO);
432438
@@ -697,6 +703,9 @@ void MirrorDownloadProc(int Notify)
697703 else
698704 EraseTmpTransFileList(&Base);
699705
706+ // バグ対策
707+ AddNullTransFileList();
708+
700709 DeleteFileList(&LocalListBase);
701710 DeleteFileList(&RemoteListBase);
702711
@@ -1203,6 +1212,9 @@ void UploadListProc(int ChName, int All)
12031212 // strcpy(Pkt.Cmd, "GOQUIT");
12041213 // AddTransFileList(&Pkt);
12051214
1215+ // バグ対策
1216+ AddNullTransFileList();
1217+
12061218 GoForwardTransWindow();
12071219
12081220 EnableUserOpe();
@@ -1379,6 +1391,9 @@ void UploadDragProc(WPARAM wParam)
13791391 // strcpy(Pkt.Cmd, "GOQUIT");
13801392 // AddTransFileList(&Pkt);
13811393
1394+ // バグ対策
1395+ AddNullTransFileList();
1396+
13821397 GoForwardTransWindow();
13831398
13841399 EnableUserOpe();
@@ -1654,6 +1669,9 @@ void MirrorUploadProc(int Notify)
16541669 else
16551670 EraseTmpTransFileList(&Base);
16561671
1672+ // バグ対策
1673+ AddNullTransFileList();
1674+
16571675 DeleteFileList(&LocalListBase);
16581676 DeleteFileList(&RemoteListBase);
16591677
@@ -3675,7 +3693,7 @@ void NoopProc(void)
36753693 CancelCheckWork = NO;
36763694 if(AskConnecting() == YES && AskUserOpeDisabled() == NO)
36773695 {
3678- if(AskReuseCmdSkt() == NO || AskShareProh() == YES)
3696+ if(AskReuseCmdSkt() == NO || AskShareProh() == YES || AskTransferNow() == NO)
36793697 {
36803698 DisableUserOpe();
36813699 DoDirListCmdSkt("", "", 999, &CancelCheckWork);
--- a/getput.c
+++ b/getput.c
@@ -436,6 +436,15 @@ void AddTransFileList(TRANSPACKET *Pkt)
436436 }
437437
438438
439+// バグ対策
440+void AddNullTransFileList()
441+{
442+ TRANSPACKET Pkt;
443+ memset(&Pkt, 0, sizeof(TRANSPACKET));
444+ strcpy(Pkt.Cmd, "NULL");
445+ AddTransFileList(&Pkt);
446+}
447+
439448 /*----- 転送ファイル情報を転送ファイルリストに追加する ------------------------
440449 *
441450 * Parameter