OSDN Git Service
(root)
/
ffftp
/
ffftp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add routines to check for software updates.
[ffftp/ffftp.git]
/
main.c
diff --git
a/main.c
b/main.c
index
e21a13e
..
5712cd6
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-372,13
+372,16
@@
int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLi
{
\r
if(!StartUpdateProcessAsAdministrator(lpszCmdLine, " --restart"))
\r
{
\r
{
\r
if(!StartUpdateProcessAsAdministrator(lpszCmdLine, " --restart"))
\r
{
\r
- ApplyUpdates(UpdateDir);
\r
+ if(ApplyUpdates(UpdateDir))
\r
+ MessageBox(NULL, MSGJPN359, "FFFTP", MB_OK);
\r
+ else
\r
+ MessageBox(NULL, MSGJPN360, "FFFTP", MB_OK);
\r
}
\r
return 0;
\r
}
\r
else if(GetTokenAfterOption(lpszCmdLine, UpdateDir, "--software-cleanup", "--software-cleanup"))
\r
{
\r
}
\r
return 0;
\r
}
\r
else if(GetTokenAfterOption(lpszCmdLine, UpdateDir, "--software-cleanup", "--software-cleanup"))
\r
{
\r
- // TODO: ダウンロードした更新ファイルを削除
\r
+ CleanupUpdates(UpdateDir);
\r
}
\r
\r
// マルチコアCPUの特定環境下でファイル通信中にクラッシュするバグ対策
\r
}
\r
\r
// マルチコアCPUの特定環境下でファイル通信中にクラッシュするバグ対策
\r