FFFTPのソースコードです。
Revision | a517496df34bd20052d2adeeb9cdb715c4b9b8b0 (tree) |
---|---|
Zeit | 2016-05-14 00:10:18 |
Autor | s_kawamoto <s_kawamoto@user...> |
Commiter | s_kawamoto |
Supported specification changes of the server for automatic software update.
Fix bugs that an useless dialog was popped up on importing from the registry.
Modify documents.
@@ -242,7 +242,7 @@ FONT 9, "MS Shell Dlg", 0, 0, 0x0 | ||
242 | 242 | BEGIN |
243 | 243 | DEFPUSHBUTTON "OK",IDOK,133,294,50,14 |
244 | 244 | ICON ffftp,-1,7,4,20,20 |
245 | - CTEXT "FFFTP Ver 1.99-20160504",-1,113,11,90,8 | |
245 | + CTEXT "FFFTP Ver 1.99a",-1,113,11,90,8 | |
246 | 246 | CTEXT "FFFTPはfreewareです",-1,7,279,305,8 |
247 | 247 | CTEXT "Copyright(C) 1997-2010 Sota & ご協力いただいた方々\nCopyright (C) 2011-2016 FFFTP Project (Hiromichi Matsushima, Suguru Kawamoto, IWAMOTO Kouichi, vitamin0x, うなー, Asami, fortran90, tomo1192, Yuji Tanaka, Moriguchi Hirokazu, ふうせん)",-1,7,25,305,44,SS_NOPREFIX |
248 | 248 | CTEXT "",ABOUT_JRE,7,96,305,8 |
@@ -2213,8 +2213,8 @@ nodrop_csr CURSOR "nodrop_c.cur" | ||
2213 | 2213 | // |
2214 | 2214 | |
2215 | 2215 | VS_VERSION_INFO VERSIONINFO |
2216 | - FILEVERSION 1,99,0,0 | |
2217 | - PRODUCTVERSION 1,99,0,0 | |
2216 | + FILEVERSION 1,99,1,0 | |
2217 | + PRODUCTVERSION 1,99,1,0 | |
2218 | 2218 | FILEFLAGSMASK 0x3fL |
2219 | 2219 | #ifdef _DEBUG |
2220 | 2220 | FILEFLAGS 0x1L |
@@ -2232,12 +2232,12 @@ BEGIN | ||
2232 | 2232 | VALUE "Comments", "これはフリーソフトウエアです。" |
2233 | 2233 | VALUE "CompanyName", "Sota, FFFTP Project" |
2234 | 2234 | VALUE "FileDescription", "FFFTP" |
2235 | - VALUE "FileVersion", "1, 99, 0, 0" | |
2235 | + VALUE "FileVersion", "1, 99, 1, 0" | |
2236 | 2236 | VALUE "InternalName", "FFFTP" |
2237 | 2237 | VALUE "LegalCopyright", "Copyright (C) 1997-2010 Sota & ご協力いただいた方々\nCopyright (C) 2011-2016 FFFTP Project (Hiromichi Matsushima, Suguru Kawamoto, IWAMOTO Kouichi, vitamin0x, うなー, Asami, fortran90, tomo1192, Yuji Tanaka, Moriguchi Hirokazu, ふうせん)." |
2238 | 2238 | VALUE "OriginalFilename", "FFFTP.exe" |
2239 | 2239 | VALUE "ProductName", "FFFTP" |
2240 | - VALUE "ProductVersion", "1, 99, 0, 0" | |
2240 | + VALUE "ProductVersion", "1, 99, 1, 0" | |
2241 | 2241 | END |
2242 | 2242 | END |
2243 | 2243 | BLOCK "VarFileInfo" |
@@ -242,7 +242,7 @@ FONT 9, "MS Shell Dlg", 0, 0, 0x0 | ||
242 | 242 | BEGIN |
243 | 243 | DEFPUSHBUTTON "OK",IDOK,132,296,50,14 |
244 | 244 | ICON ffftp,-1,7,4,20,20 |
245 | - CTEXT "FFFTP Ver 1.99-20160504",-1,110,11,90,8 | |
245 | + CTEXT "FFFTP Ver 1.99a",-1,110,11,90,8 | |
246 | 246 | CTEXT "FFFTP is freeware",-1,7,281,301,8 |
247 | 247 | CTEXT "Copyright(C) 1997-2010 Sota && cooperators\nCopyright (C) 2011-2016 FFFTP Project (Hiromichi Matsushima, Suguru Kawamoto, IWAMOTO Kouichi, vitamin0x, unarist, Asami, fortran90, tomo1192, Yuji Tanaka, Moriguchi Hirokazu, Fu-sen)",-1,7,25,301,44 |
248 | 248 | CTEXT "",ABOUT_JRE,7,93,301,8 |
@@ -2253,8 +2253,8 @@ nodrop_csr CURSOR "nodrop_c.cur" | ||
2253 | 2253 | // |
2254 | 2254 | |
2255 | 2255 | VS_VERSION_INFO VERSIONINFO |
2256 | - FILEVERSION 1,99,0,0 | |
2257 | - PRODUCTVERSION 1,99,0,0 | |
2256 | + FILEVERSION 1,99,1,0 | |
2257 | + PRODUCTVERSION 1,99,1,0 | |
2258 | 2258 | FILEFLAGSMASK 0x3fL |
2259 | 2259 | #ifdef _DEBUG |
2260 | 2260 | FILEFLAGS 0x1L |
@@ -2272,12 +2272,12 @@ BEGIN | ||
2272 | 2272 | VALUE "Comments", "This software is Free Software" |
2273 | 2273 | VALUE "CompanyName", "Sota, FFFTP Project" |
2274 | 2274 | VALUE "FileDescription", "FFFTP" |
2275 | - VALUE "FileVersion", "1, 99, 0, 0" | |
2275 | + VALUE "FileVersion", "1, 99, 1, 0" | |
2276 | 2276 | VALUE "InternalName", "FFFTP" |
2277 | 2277 | VALUE "LegalCopyright", "Copyright (C) 1997-2010 Sota & cooperators\nCopyright (C) 2011-2016 FFFTP Project (Hiromichi Matsushima, Suguru Kawamoto, IWAMOTO Kouichi, vitamin0x, unarist, Asami, fortran90, tomo1192, Yuji Tanaka, Moriguchi Hirokazu, Fu-sen)." |
2278 | 2278 | VALUE "OriginalFilename", "FFFTP.exe" |
2279 | 2279 | VALUE "ProductName", "FFFTP" |
2280 | - VALUE "ProductVersion", "1, 99, 0, 0" | |
2280 | + VALUE "ProductVersion", "1, 99, 1, 0" | |
2281 | 2281 | END |
2282 | 2282 | END |
2283 | 2283 | BLOCK "VarFileInfo" |
@@ -72,16 +72,16 @@ | ||
72 | 72 | //#define PROGRAM_VERSION_NUM 1972 /* バージョン */ |
73 | 73 | // 64ビット対応 |
74 | 74 | #ifdef _WIN64 |
75 | -#define VER_STR "1.99-20160504 64bit" | |
75 | +#define VER_STR "1.99a 64bit" | |
76 | 76 | #else |
77 | -#define VER_STR "1.99-20160504" | |
77 | +#define VER_STR "1.99a" | |
78 | 78 | #endif |
79 | 79 | #define VER_NUM 1990 /* 設定バージョン */ |
80 | 80 | #define PROGRAM_VERSION_NUM 1990 /* バージョン */ |
81 | 81 | // ソフトウェア自動更新 |
82 | 82 | // リリースバージョンはリリース予定年(10進数4桁)+月(2桁)+日(2桁)+通し番号(0スタート2桁)とする |
83 | 83 | // 2014年7月31日中の30個目のリリースは2014073129 |
84 | -#define RELEASE_VERSION_NUM 2016050400 /* リリースバージョン */ | |
84 | +#define RELEASE_VERSION_NUM 2016051400 /* リリースバージョン */ | |
85 | 85 | |
86 | 86 | |
87 | 87 | // SourceForge.JPによるフォーク |
@@ -1955,6 +1955,8 @@ void QueryDisplayDPI(); | ||
1955 | 1955 | int CalcPixelX(int x); |
1956 | 1956 | int CalcPixelY(int y); |
1957 | 1957 | HBITMAP ResizeBitmap(HBITMAP hBitmap, int UnitSizeX, int UnitSizeY, int ScaleNumerator, int ScaleDenominator); |
1958 | +// ソフトウェア自動更新 | |
1959 | +void DecodeLineFeed(char* Str); | |
1958 | 1960 | |
1959 | 1961 | /*===== dlgsize.c =====*/ |
1960 | 1962 |
@@ -1,5 +1,5 @@ | ||
1 | 1 | ============================================================ |
2 | -[Software Name] FFFTP Ver.1.99 (FTP Client software) | |
2 | +[Software Name] FFFTP Ver.1.99a (FTP Client software) | |
3 | 3 | [Copyright] Copyright(C) 1997-2010 Sota & cooperators |
4 | 4 | Copyright (C) 2011-2016 FFFTP Project (Hiromichi Matsushima, Suguru Kawamoto, IWAMOTO Kouichi, vitamin0x, unarist, Asami, fortran90, tomo1192, Yuji Tanaka, Moriguchi Hirokazu, Fu-sen). |
5 | 5 | [Environment] Windows 10, 8.1, 8, 7, Vista, XP, 2000 |
@@ -28,86 +28,25 @@ following menu. | ||
28 | 28 | File -> Settings -> Change Master password |
29 | 29 | |
30 | 30 | |
31 | -Changes in Ver.1.99 | |
31 | +Changes in Ver.1.99a | |
32 | 32 | -------------------- |
33 | 33 | |
34 | --- Tested on Windows 8.1 (32bit/64bit). | |
34 | +The lists of this and newer versions include changes applied by automatic | |
35 | +software updates. | |
35 | 36 | |
36 | --- Tested on Windows 10 (32bit/64bit). | |
37 | +-- Supported specification changes of the server for automatic software update. | |
38 | + Please update your copy of FFFTP to this version manually because older | |
39 | + versions cannot update automatically now. | |
37 | 40 | |
38 | --- 64bit version is now available. | |
39 | - This works around the certain restriction on 64bit Windows. | |
41 | +-- Fixed bugs that it could not display some file names if its encoding was | |
42 | + other than UTF-8. | |
40 | 43 | |
41 | --- Added the feature of automatic software update (Windows XP SP3 or later | |
42 | - only). | |
43 | - It will connect to the dedicated server to check whether there are updates | |
44 | - every 7 days by default, and then confirm whether to apply them. | |
44 | +-- Fixed bugs that an useless dialog was popped up on ZIP versions while | |
45 | + settings were imported from the registry. | |
45 | 46 | |
46 | --- Added a feature to encrypt the all settings with the master password. | |
47 | - This prevents malwares and third parties from skimming personal information. | |
48 | - Please note that 1.98g or former versions cannot read encrypted settings. | |
49 | - This feature is disabled by default. | |
47 | +-- Updated OpenSSL. | |
50 | 48 | |
51 | --- Fixed bugs that the apprication did not start when the INI file was modified | |
52 | - and BOM was inserted in it. | |
53 | - | |
54 | --- Fixed bugs that user names which were sent to hosts were always encoded into | |
55 | - UTF-8. | |
56 | - | |
57 | --- Fixed bugs of recognition of MLSD responses that include uppercase letters. | |
58 | - | |
59 | --- Added an option to disable automatic refresh of the local view. | |
60 | - | |
61 | --- Added an option to dispose old logs automatically. | |
62 | - | |
63 | --- Supported UTF-8 HFS+ file name encoding (Windows Vista or later only). | |
64 | - | |
65 | --- Improved automatic detection of Kanji code of filenames. | |
66 | - | |
67 | --- Fixed bugs of Select dialog. | |
68 | - | |
69 | --- Changed to confirm how the settings will be saved when the settings of a | |
70 | - future version exist in the registry. | |
71 | - | |
72 | --- Changed to display file sizes with units of GB or larger. | |
73 | - | |
74 | --- Changed to display the encryption status of the current connection. | |
75 | - | |
76 | --- Changed to display the progress of file transfer on the taskbar (Windows 7 | |
77 | - or later only). | |
78 | - | |
79 | --- Added a function to move remote files to their parent directory. | |
80 | - | |
81 | --- Supported high DPI displays. | |
82 | - The interface such as the menu will look smooth on high DPI displays. | |
83 | - | |
84 | --- Added a feature to export settings as FileZilla XML format. | |
85 | - | |
86 | --- Added an option not to use weak encryption methods for each host. | |
87 | - This refuses SSL 3.0 or older and encryption algorithms whose keys are | |
88 | - shorter than 128 bits. | |
89 | - This feature is enabled by default. | |
90 | - | |
91 | --- Added the default settings to the host list. | |
92 | - This is used for the initial state of new hosts and Quick Connect. | |
93 | - | |
94 | --- Added an option to abort file transfer if failed in obtaining file lists | |
95 | - before it. | |
96 | - This feature is enabled by default. | |
97 | - | |
98 | --- Changed to enable reconnection after transfer errors by default. | |
99 | - | |
100 | --- Fixed bugs to fail in controlling UPnP with simultaneous connections. | |
101 | - | |
102 | --- Fixed bugs to crash if certain operations are performed immediately after | |
103 | - drag-and-drop from the remote file view. | |
104 | - | |
105 | --- Fixed bugs to fail in recognizing file names that contain 2 or more spaces | |
106 | - in Windows Server 2008 R2 file list format. | |
107 | - | |
108 | --- Added an option not to save the user name and password of the firewall. | |
109 | - | |
110 | --- Fixed bugs to disturb the view after resizing of a dialog. | |
49 | +-- Updated SSL/TLS root CAs. | |
111 | 50 | |
112 | 51 | |
113 | 52 | Outline |
@@ -1,5 +1,25 @@ | ||
1 | 1 | FFFTP version history. |
2 | 2 | |
3 | +Changes in Ver.1.99a | |
4 | +-------------------- | |
5 | + | |
6 | +The lists of this and newer versions include changes applied by automatic | |
7 | +software updates. | |
8 | + | |
9 | +-- Supported specification changes of the server for automatic software update. | |
10 | + Please update your copy of FFFTP to this version manually because older | |
11 | + versions cannot update automatically now. | |
12 | + | |
13 | +-- Fixed bugs that it could not display some file names if its encoding was | |
14 | + other than UTF-8. | |
15 | + | |
16 | +-- Fixed bugs that an useless dialog was popped up on ZIP versions while | |
17 | + settings were imported from the registry. | |
18 | + | |
19 | +-- Updated OpenSSL. | |
20 | + | |
21 | +-- Updated SSL/TLS root CAs. | |
22 | + | |
3 | 23 | Changes in Ver.1.99 |
4 | 24 | -------------------- |
5 | 25 |
@@ -1,5 +1,5 @@ | ||
1 | 1 | ============================================================ |
2 | -【ソフト名】 FTPクライアント FFFTP(OSDN版) Ver 1.99 | |
2 | +【ソフト名】 FTPクライアント FFFTP(OSDN版) Ver 1.99a | |
3 | 3 | 【動作確認環境】 Windows 10, 8.1, 8, 7, Vista, XP, 2000 |
4 | 4 | 【サポート】 http://osdn.jp/projects/ffftp/ |
5 | 5 | ============================================================ |
@@ -27,90 +27,24 @@ FFFTP Ver.1.96d+009 | ||
27 | 27 | マスターパスワードの入力が求められますので、入力してください。 |
28 | 28 | |
29 | 29 | |
30 | -Ver 1.99での変更点 | |
30 | +Ver 1.99aでの変更点 | |
31 | 31 | ------------------- |
32 | 32 | |
33 | -・Windows 8.1 (32bit/64bit)で動作を確認しました。 | |
33 | +今回のバージョンより、自動更新機能で対応した内容を含めて記載します。 | |
34 | 34 | |
35 | -・Windows 10 (32bit/64bit)で動作を確認しました。 | |
35 | +・自動更新機能用サーバーの仕様変更に対応しました。 | |
36 | + 以前のバージョンでは自動更新機能が使用できなくなったため、 | |
37 | + このバージョンへの更新は手動にてお願いします。 | |
36 | 38 | |
37 | -・64bit版が利用可能になりました。 | |
38 | - これにより64bit版Windowsで特定の操作が制限されるのを回避できます。 | |
39 | +・ファイル名の漢字コードがUTF-8以外の場合に特定のファイル名が正しく表示 | |
40 | + されないバグを修正しました。 | |
39 | 41 | |
40 | -・ソフトウェアの自動更新機能を追加しました(Windows XP SP3以降のみ)。 | |
41 | - 既定では7日ごとに専用のサーバーに接続して更新があるかどうか確認し、 | |
42 | - 更新があれば更新を適用するかどうかユーザーに確認します。 | |
42 | +・ZIP版で将来のバージョンの設定をレジストリからインポートした際に余分な | |
43 | + ダイアログが表示されるバグを修正しました。 | |
43 | 44 | |
44 | -・マスターパスワードを用いて全ての設定を暗号化する機能を追加しました。 | |
45 | - マルウェアや第三者により設定から個人情報を読み取られなくなりますが、 | |
46 | - 1.98g以前では設定を読み込めなりますので注意してください。 | |
47 | - この機能は既定では無効になっています。 | |
45 | +・OpenSSLを更新しました。 | |
48 | 46 | |
49 | -・INIファイルが改変されBOMが付加されている場合にクラッシュするバグを | |
50 | - 修正しました。 | |
51 | - | |
52 | -・接続時にユーザー名が常にUTF-8でホストに送信されるバグを修正しました。 | |
53 | - 1.98以降で半角英数字以外の文字が含まれるユーザー名でログインできない | |
54 | - 問題が解決されます。 | |
55 | - | |
56 | -・MLSDコマンドの応答が大文字を含む場合に認識しないバグを修正しました。 | |
57 | - | |
58 | -・ローカル側のファイル一覧の自動更新を無効にする設定を追加しました。 | |
59 | - | |
60 | -・処理内容を自動的に古い行から削除する設定を追加しました。 | |
61 | - 一部の環境で長時間操作した場合に動作が重くなる問題が緩和されます。 | |
62 | - | |
63 | -・ホストのファイル名の漢字コードとしてUTF-8 HFS+に対応しました | |
64 | - (Windows Vista以降のみ)。 | |
65 | - Mac OS X上で動作するホストとファイルを送受信する際にファイル名の | |
66 | - ひらがなやカタカナの濁点や半濁点が正しく扱われるようになります。 | |
67 | - | |
68 | -・ホストのファイル名の漢字コードの自動判別の精度を改善しました。 | |
69 | - | |
70 | -・選択ダイアログが正常に機能しないバグを修正しました。 | |
71 | - | |
72 | -・レジストリに将来のバージョンの設定が存在する場合に設定の保存方法を | |
73 | - 確認するようにしました。 | |
74 | - | |
75 | -・ファイルサイズ表記にGB以上の単位を表示するようにしました。 | |
76 | - | |
77 | -・タイトルバーに現在の接続の暗号化状態を表示するようにしました。 | |
78 | - | |
79 | -・タスクバーにファイル転送の進捗状況を表示するようにしました | |
80 | - (Windows 7以降のみ)。 | |
81 | - | |
82 | -・リモート側のファイルをその一つ上のディレクトリに移動する機能を追加 | |
83 | - しました。 | |
84 | - | |
85 | -・高DPIディスプレイに対応しました。 | |
86 | - 高DPIディスプレイに表示する際にメニューなどの表示が滑らかになります。 | |
87 | - | |
88 | -・設定をFileZilla XML形式にエクスポートする機能を追加しました。 | |
89 | - | |
90 | -・ホストの設定に弱い暗号化方式を使用しない設定を追加しました。 | |
91 | - SSL 3.0以前や鍵の強度が128ビット未満の暗号を拒否するようになります。 | |
92 | - この機能は既定では有効になります。 | |
93 | - | |
94 | -・ホスト一覧に既定の設定を追加しました。 | |
95 | - 新規ホストの作成時やクイック接続時の初期状態として使用されます。 | |
96 | - | |
97 | -・ファイル転送前のファイル一覧取得時にエラーが発生した場合に転送を | |
98 | - 中止する設定を追加しました。 | |
99 | - この機能は既定では有効になります。 | |
100 | - | |
101 | -・ファイルの転送に失敗した場合に再接続する設定を既定で有効にしました。 | |
102 | - | |
103 | -・同時接続時にUPnPの制御に失敗するバグを修正しました。 | |
104 | - | |
105 | -・リモート側のファイル一覧からドラッグアンドドロップした直後に特定の | |
106 | - 操作を行うとクラッシュするバグを修正しました。 | |
107 | - | |
108 | -・Windows Server 2008 R2のファイル一覧形式で半角スペースを2個以上含む | |
109 | - ファイル名を認識できないバグを修正しました。 | |
110 | - | |
111 | -・FireWallユーザー名およびパスワードを保存しない設定を追加しました。 | |
112 | - | |
113 | -・ダイアログのサイズ変更時に表示が乱れるバグを修正しました。 | |
47 | +・SSL/TLSのルート証明書を更新しました。 | |
114 | 48 | |
115 | 49 | |
116 | 50 | Ver 1.96d以前へ戻す場合 |
@@ -1,5 +1,23 @@ | ||
1 | 1 | FFFTP 改版リスト |
2 | 2 | |
3 | +■Ver 1.99a | |
4 | + | |
5 | +今回のバージョンより、自動更新機能で対応した内容を含めて記載します。 | |
6 | + | |
7 | +・自動更新機能用サーバーの仕様変更に対応しました。 | |
8 | + 以前のバージョンでは自動更新機能が使用できなくなったため、 | |
9 | + このバージョンへの更新は手動にてお願いします。 | |
10 | + | |
11 | +・ファイル名の漢字コードがUTF-8以外の場合に特定のファイル名が正しく表示 | |
12 | + されないバグを修正しました。 | |
13 | + | |
14 | +・ZIP版で将来のバージョンの設定をレジストリからインポートした際に余分な | |
15 | + ダイアログが表示されるバグを修正しました。 | |
16 | + | |
17 | +・OpenSSLを更新しました。 | |
18 | + | |
19 | +・SSL/TLSのルート証明書を更新しました。 | |
20 | + | |
3 | 21 | ■Ver 1.99 |
4 | 22 | |
5 | 23 | ・Windows 8.1 (32bit/64bit)で動作を確認しました。 |
@@ -4,9 +4,9 @@ | ||
4 | 4 | <META name=GENERATOR content="MSHTML 8.00.7600.16490"></HEAD> |
5 | 5 | <BODY> |
6 | 6 | <P align=center><FONT face="MS ゴシック"> <FONT color=#0000ff |
7 | -size=6>FFFTP</FONT> Ver 1.99</FONT><FONT face="MS ゴシック"><BR></FONT>(動作確認環境 | |
7 | +size=6>FFFTP</FONT> Ver 1.99a</FONT><FONT face="MS ゴシック"><BR></FONT>(動作確認環境 | |
8 | 8 | <STRONG>Windows 10, 8.1, 8, 7, Vista, XP, 2000</STRONG>)</P> |
9 | -<P><BR>GUIなFTPクライアントツールです。</P><STRONG> | |
9 | +<P><BR>GUIなFTPクライアントツールです。</P><STRONG> | |
10 | 10 | <P style="MARGIN-RIGHT: 0px" dir=ltr><STRONG><FONT |
11 | 11 | color=#ff0000>お使いの前に</FONT></STRONG></P> |
12 | 12 | <P>以下の項目は重要です。お読みください。</P> |
@@ -439,7 +439,10 @@ int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLi | ||
439 | 439 | if(pCommand = GetToken(pCommand, ListFile)) |
440 | 440 | { |
441 | 441 | if(pCommand = GetToken(pCommand, Description)) |
442 | + { | |
443 | + DecodeLineFeed(Description); | |
442 | 444 | BuildUpdates(PrivateKeyFile, Password, ServerPath, HashFile, ListFile, RELEASE_VERSION_NUM, VER_STR, Description); |
445 | + } | |
443 | 446 | } |
444 | 447 | } |
445 | 448 | } |
@@ -628,20 +631,23 @@ static int InitApp(LPSTR lpszCmdLine, int cmdShow) | ||
628 | 631 | } |
629 | 632 | } |
630 | 633 | // バージョン確認 |
631 | - if(ReadSettingsVersion() > VER_NUM) | |
634 | + if(PortableVersion == NO) | |
632 | 635 | { |
633 | - if(IsRegAvailable() == YES && IsIniAvailable() == NO) | |
636 | + if(ReadSettingsVersion() > VER_NUM) | |
634 | 637 | { |
635 | - switch(MessageBox(GetMainHwnd(), MSGJPN350, "FFFTP", MB_YESNOCANCEL | MB_DEFBUTTON2)) | |
638 | + if(IsRegAvailable() == YES && IsIniAvailable() == NO) | |
636 | 639 | { |
637 | - case IDCANCEL: | |
638 | - ReadOnlySettings = YES; | |
639 | - break; | |
640 | - case IDYES: | |
641 | - break; | |
642 | - case IDNO: | |
643 | - ImportPortable = YES; | |
644 | - break; | |
640 | + switch(MessageBox(GetMainHwnd(), MSGJPN350, "FFFTP", MB_YESNOCANCEL | MB_DEFBUTTON2)) | |
641 | + { | |
642 | + case IDCANCEL: | |
643 | + ReadOnlySettings = YES; | |
644 | + break; | |
645 | + case IDYES: | |
646 | + break; | |
647 | + case IDNO: | |
648 | + ImportPortable = YES; | |
649 | + break; | |
650 | + } | |
645 | 651 | } |
646 | 652 | } |
647 | 653 | } |
@@ -2060,3 +2060,14 @@ HBITMAP ResizeBitmap(HBITMAP hBitmap, int UnitSizeX, int UnitSizeY, int ScaleNum | ||
2060 | 2060 | return hDstBitmap; |
2061 | 2061 | } |
2062 | 2062 | |
2063 | +// ソフトウェア自動更新 | |
2064 | +void DecodeLineFeed(char* Str) | |
2065 | +{ | |
2066 | + char* p; | |
2067 | + p = Str; | |
2068 | + while(p = strstr(p, "\\n")) | |
2069 | + { | |
2070 | + strncpy(p, "\r\n", 2); | |
2071 | + } | |
2072 | +} | |
2073 | + |
@@ -11,19 +11,19 @@ | ||
11 | 11 | #define UPDATE_SERVER "osdn.jp" |
12 | 12 | #if defined(_M_IX86) |
13 | 13 | #if !defined(FFFTP_ENGLISH) |
14 | -#define UPDATE_HASH_PATH "/dl/ffftp/update+jpn+hash" | |
15 | -#define UPDATE_LIST_PATH "/dl/ffftp/update+jpn+list" | |
14 | +#define UPDATE_HASH_PATH "/dl/ffftp/update.jpn.hash" | |
15 | +#define UPDATE_LIST_PATH "/dl/ffftp/update.jpn.list" | |
16 | 16 | #else |
17 | -#define UPDATE_HASH_PATH "/dl/ffftp/update+eng+hash" | |
18 | -#define UPDATE_LIST_PATH "/dl/ffftp/update+eng+list" | |
17 | +#define UPDATE_HASH_PATH "/dl/ffftp/update.eng.hash" | |
18 | +#define UPDATE_LIST_PATH "/dl/ffftp/update.eng.list" | |
19 | 19 | #endif |
20 | 20 | #elif defined(_M_AMD64) |
21 | 21 | #if !defined(FFFTP_ENGLISH) |
22 | -#define UPDATE_HASH_PATH "/dl/ffftp/update+amd64+jpn+hash" | |
23 | -#define UPDATE_LIST_PATH "/dl/ffftp/update+amd64+jpn+list" | |
22 | +#define UPDATE_HASH_PATH "/dl/ffftp/update.amd64.jpn.hash" | |
23 | +#define UPDATE_LIST_PATH "/dl/ffftp/update.amd64.jpn.list" | |
24 | 24 | #else |
25 | -#define UPDATE_HASH_PATH "/dl/ffftp/update+amd64+eng+hash" | |
26 | -#define UPDATE_LIST_PATH "/dl/ffftp/update+amd64+eng+list" | |
25 | +#define UPDATE_HASH_PATH "/dl/ffftp/update.amd64.eng.hash" | |
26 | +#define UPDATE_LIST_PATH "/dl/ffftp/update.amd64.eng.list" | |
27 | 27 | #endif |
28 | 28 | #endif |
29 | 29 | #define UPDATE_RSA_PUBLIC_KEY \ |