OSDN Git Service

Fix bugs of automatic software update.
authors_kawamoto <s_kawamoto@users.sourceforge.jp>
Wed, 2 Jul 2014 14:47:02 +0000 (23:47 +0900)
committers_kawamoto <s_kawamoto@users.sourceforge.jp>
Wed, 2 Jul 2014 14:47:02 +0000 (23:47 +0900)
FFFTP_Eng_Release/FFFTP.exe
Release/FFFTP.exe
main.c

index 409fb87..775b9b2 100644 (file)
Binary files a/FFFTP_Eng_Release/FFFTP.exe and b/FFFTP_Eng_Release/FFFTP.exe differ
index 4517887..1b15737 100644 (file)
Binary files a/Release/FFFTP.exe and b/Release/FFFTP.exe differ
diff --git a/main.c b/main.c
index eb5a8e8..f4a3a40 100644 (file)
--- a/main.c
+++ b/main.c
@@ -775,7 +775,7 @@ static int InitApp(LPSTR lpszCmdLine, int cmdShow)
                                        DispTransferFiles();\r
 \r
                                        // ソフトウェア自動更新\r
-                                       if(AutoCheckForUptatesInterval == 0)\r
+                                       if(AutoCheckForUpdates == YES && AutoCheckForUptatesInterval == 0)\r
                                                UpdateSoftware(YES, YES, AutoApplyUpdates);\r
 \r
                                        StartupProc(lpszCmdLine);\r
@@ -1152,7 +1152,7 @@ static LRESULT CALLBACK FtpWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARA
                        case 3:\r
                                if(AskUserOpeDisabled() == NO && AskTransferNow() == NO)\r
                                {\r
-                                       if(AutoCheckForUptatesInterval > 0 && time(NULL) - LastAutoCheckForUpdates >= AutoCheckForUptatesInterval * 86400)\r
+                                       if(AutoCheckForUpdates == YES && AutoCheckForUptatesInterval > 0 && time(NULL) - LastAutoCheckForUpdates >= AutoCheckForUptatesInterval * 86400)\r
                                                UpdateSoftware(YES, YES, AutoApplyUpdates);\r
                                }\r
                                break;\r