FFFTPのソースコードです。
Revision | 1dfaea5262e8338a6fa6836e3a16c3c03590d88d (tree) |
---|---|
Time | 2014-07-02 23:47:02 |
Author | s_kawamoto <s_kawamoto@user...> |
Commiter | s_kawamoto |
Fix bugs of automatic software update.
@@ -775,7 +775,7 @@ static int InitApp(LPSTR lpszCmdLine, int cmdShow) | ||
775 | 775 | DispTransferFiles(); |
776 | 776 | |
777 | 777 | // ソフトウェア自動更新 |
778 | - if(AutoCheckForUptatesInterval == 0) | |
778 | + if(AutoCheckForUpdates == YES && AutoCheckForUptatesInterval == 0) | |
779 | 779 | UpdateSoftware(YES, YES, AutoApplyUpdates); |
780 | 780 | |
781 | 781 | StartupProc(lpszCmdLine); |
@@ -1152,7 +1152,7 @@ static LRESULT CALLBACK FtpWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARA | ||
1152 | 1152 | case 3: |
1153 | 1153 | if(AskUserOpeDisabled() == NO && AskTransferNow() == NO) |
1154 | 1154 | { |
1155 | - if(AutoCheckForUptatesInterval > 0 && time(NULL) - LastAutoCheckForUpdates >= AutoCheckForUptatesInterval * 86400) | |
1155 | + if(AutoCheckForUpdates == YES && AutoCheckForUptatesInterval > 0 && time(NULL) - LastAutoCheckForUpdates >= AutoCheckForUptatesInterval * 86400) | |
1156 | 1156 | UpdateSoftware(YES, YES, AutoApplyUpdates); |
1157 | 1157 | } |
1158 | 1158 | break; |