Loweynet
Revision | 0ae23bd18c4f4de6781bec3a83021fddddae7480 (tree) |
---|---|
Time | 2012-05-17 00:00:33 |
Author | s_kawamoto <s_kawamoto@user...> |
Commiter | s_kawamoto |
Fix conditions of sending commands for keep alive.
Fix routines for queuing files.
@@ -1662,6 +1662,8 @@ void EraseTmpTransFileList(TRANSPACKET **Base); | ||
1662 | 1662 | int RemoveTmpTransFileListItem(TRANSPACKET **Base, int Num); |
1663 | 1663 | |
1664 | 1664 | void AddTransFileList(TRANSPACKET *Pkt); |
1665 | +// バグ対策 | |
1666 | +void AddNullTransFileList(); | |
1665 | 1667 | void AppendTransFileList(TRANSPACKET *Pkt); |
1666 | 1668 | void KeepTransferDialog(int Sw); |
1667 | 1669 | int AskTransferNow(void); |
@@ -314,6 +314,9 @@ void DownloadProc(int ChName, int ForceFile, int All) | ||
314 | 314 | // strcpy(Pkt.Cmd, "GOQUIT"); |
315 | 315 | // AddTransFileList(&Pkt); |
316 | 316 | |
317 | + // バグ対策 | |
318 | + AddNullTransFileList(); | |
319 | + | |
317 | 320 | GoForwardTransWindow(); |
318 | 321 | // KeepTransferDialog(NO); |
319 | 322 |
@@ -427,6 +430,9 @@ void DirectDownloadProc(char *Fname) | ||
427 | 430 | // strcpy(Pkt.Cmd, "GOQUIT"); |
428 | 431 | // AddTransFileList(&Pkt); |
429 | 432 | |
433 | + // バグ対策 | |
434 | + AddNullTransFileList(); | |
435 | + | |
430 | 436 | GoForwardTransWindow(); |
431 | 437 | // KeepTransferDialog(NO); |
432 | 438 |
@@ -697,6 +703,9 @@ void MirrorDownloadProc(int Notify) | ||
697 | 703 | else |
698 | 704 | EraseTmpTransFileList(&Base); |
699 | 705 | |
706 | + // バグ対策 | |
707 | + AddNullTransFileList(); | |
708 | + | |
700 | 709 | DeleteFileList(&LocalListBase); |
701 | 710 | DeleteFileList(&RemoteListBase); |
702 | 711 |
@@ -1203,6 +1212,9 @@ void UploadListProc(int ChName, int All) | ||
1203 | 1212 | // strcpy(Pkt.Cmd, "GOQUIT"); |
1204 | 1213 | // AddTransFileList(&Pkt); |
1205 | 1214 | |
1215 | + // バグ対策 | |
1216 | + AddNullTransFileList(); | |
1217 | + | |
1206 | 1218 | GoForwardTransWindow(); |
1207 | 1219 | |
1208 | 1220 | EnableUserOpe(); |
@@ -1379,6 +1391,9 @@ void UploadDragProc(WPARAM wParam) | ||
1379 | 1391 | // strcpy(Pkt.Cmd, "GOQUIT"); |
1380 | 1392 | // AddTransFileList(&Pkt); |
1381 | 1393 | |
1394 | + // バグ対策 | |
1395 | + AddNullTransFileList(); | |
1396 | + | |
1382 | 1397 | GoForwardTransWindow(); |
1383 | 1398 | |
1384 | 1399 | EnableUserOpe(); |
@@ -1654,6 +1669,9 @@ void MirrorUploadProc(int Notify) | ||
1654 | 1669 | else |
1655 | 1670 | EraseTmpTransFileList(&Base); |
1656 | 1671 | |
1672 | + // バグ対策 | |
1673 | + AddNullTransFileList(); | |
1674 | + | |
1657 | 1675 | DeleteFileList(&LocalListBase); |
1658 | 1676 | DeleteFileList(&RemoteListBase); |
1659 | 1677 |
@@ -3675,7 +3693,7 @@ void NoopProc(void) | ||
3675 | 3693 | CancelCheckWork = NO; |
3676 | 3694 | if(AskConnecting() == YES && AskUserOpeDisabled() == NO) |
3677 | 3695 | { |
3678 | - if(AskReuseCmdSkt() == NO || AskShareProh() == YES) | |
3696 | + if(AskReuseCmdSkt() == NO || AskShareProh() == YES || AskTransferNow() == NO) | |
3679 | 3697 | { |
3680 | 3698 | DisableUserOpe(); |
3681 | 3699 | DoDirListCmdSkt("", "", 999, &CancelCheckWork); |
@@ -436,6 +436,15 @@ void AddTransFileList(TRANSPACKET *Pkt) | ||
436 | 436 | } |
437 | 437 | |
438 | 438 | |
439 | +// バグ対策 | |
440 | +void AddNullTransFileList() | |
441 | +{ | |
442 | + TRANSPACKET Pkt; | |
443 | + memset(&Pkt, 0, sizeof(TRANSPACKET)); | |
444 | + strcpy(Pkt.Cmd, "NULL"); | |
445 | + AddTransFileList(&Pkt); | |
446 | +} | |
447 | + | |
439 | 448 | /*----- 転送ファイル情報を転送ファイルリストに追加する ------------------------ |
440 | 449 | * |
441 | 450 | * Parameter |