• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

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

FFFTPのソースコードです。


Commit MetaInfo

Révision4bb821a9b2a937ec3c984f6378fa553b074c89b7 (tree)
l'heure2016-03-24 00:08:21
Auteurs_kawamoto <s_kawamoto@user...>
Commiters_kawamoto

Message de Log

Fix bugs of automatic software update.

Change Summary

Modification

Binary files a/FFFTP_Eng_Release/FFFTP.exe and b/FFFTP_Eng_Release/FFFTP.exe differ
Binary files a/FFFTP_Eng_Release_64/FFFTP.exe and b/FFFTP_Eng_Release_64/FFFTP.exe differ
Binary files a/Release/FFFTP.exe and b/Release/FFFTP.exe differ
Binary files a/Release_64/FFFTP.exe and b/Release_64/FFFTP.exe differ
--- a/common.h
+++ b/common.h
@@ -81,7 +81,7 @@
8181 // ソフトウェア自動更新
8282 // リリースバージョンはリリース予定年(10進数4桁)+月(2桁)+日(2桁)+通し番号(0スタート2桁)とする
8383 // 2014年7月31日中の30個目のリリースは2014073129
84-#define RELEASE_VERSION_NUM 2016032300 /* リリースバージョン */
84+#define RELEASE_VERSION_NUM 2016032400 /* リリースバージョン */
8585
8686
8787 // SourceForge.JPによるフォーク
--- a/updater.c
+++ b/updater.c
@@ -50,32 +50,37 @@ BOOL ReadFileViaHTTPW(void* pOut, DWORD Length, DWORD* pLength, LPCWSTR UserAgen
5050 {
5151 BOOL bResult;
5252 HINTERNET hSession;
53+ DWORD Buffer;
5354 HINTERNET hConnect;
5455 HINTERNET hRequest;
5556 bResult = FALSE;
5657 if(hSession = WinHttpOpen(UserAgent, WINHTTP_ACCESS_TYPE_NO_PROXY, WINHTTP_NO_PROXY_NAME, WINHTTP_NO_PROXY_BYPASS, 0))
5758 {
58- if(hConnect = WinHttpConnect(hSession, ServerName, INTERNET_DEFAULT_HTTP_PORT, 0))
59+ Buffer = WINHTTP_OPTION_REDIRECT_POLICY_ALWAYS;
60+ if(WinHttpSetOption(hSession, WINHTTP_OPTION_REDIRECT_POLICY, &Buffer, sizeof(DWORD)))
5961 {
60- if(hRequest = WinHttpOpenRequest(hConnect, L"GET", ObjectName, NULL, WINHTTP_NO_REFERER, WINHTTP_DEFAULT_ACCEPT_TYPES, 0))
62+ if(hConnect = WinHttpConnect(hSession, ServerName, INTERNET_DEFAULT_HTTP_PORT, 0))
6163 {
62- if(WinHttpSendRequest(hRequest, WINHTTP_NO_ADDITIONAL_HEADERS, 0, WINHTTP_NO_REQUEST_DATA, 0, 0, 0))
64+ if(hRequest = WinHttpOpenRequest(hConnect, L"GET", ObjectName, NULL, WINHTTP_NO_REFERER, WINHTTP_DEFAULT_ACCEPT_TYPES, 0))
6365 {
64- if(WinHttpReceiveResponse(hRequest, NULL))
66+ if(WinHttpSendRequest(hRequest, WINHTTP_NO_ADDITIONAL_HEADERS, 0, WINHTTP_NO_REQUEST_DATA, 0, 0, 0))
6567 {
66- if(WinHttpQueryDataAvailable(hRequest, pLength))
68+ if(WinHttpReceiveResponse(hRequest, NULL))
6769 {
68- if(*pLength <= Length)
70+ if(WinHttpQueryDataAvailable(hRequest, pLength))
6971 {
70- if(WinHttpReadData(hRequest, pOut, Length, pLength))
71- bResult = TRUE;
72+ if(*pLength <= Length)
73+ {
74+ if(WinHttpReadData(hRequest, pOut, Length, pLength))
75+ bResult = TRUE;
76+ }
7277 }
7378 }
7479 }
80+ WinHttpCloseHandle(hRequest);
7581 }
76- WinHttpCloseHandle(hRequest);
82+ WinHttpCloseHandle(hConnect);
7783 }
78- WinHttpCloseHandle(hConnect);
7984 }
8085 WinHttpCloseHandle(hSession);
8186 }