• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

よく使われているワード(クリックで追加)

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

Loweynet


コミットメタ情報

リビジョン2a2b6d8b2448f4acb3e987ade7712712bce5a686 (tree)
日時2012-11-08 23:08:20
作者s_kawamoto <s_kawamoto@user...>
コミッターs_kawamoto

ログメッセージ

Fix bugs of handling of time stamps.

変更サマリ

差分

Binary files a/FFFTP_Eng_Release/FFFTP.exe and b/FFFTP_Eng_Release/FFFTP.exe differ
Binary files a/Release/FFFTP.exe and b/Release/FFFTP.exe differ
--- a/filelist.c
+++ b/filelist.c
@@ -2838,6 +2838,7 @@ void MakeSelectedFileList(int Win, int Expand, int All, FILELIST **Base, int *Ca
28382838
28392839 if(Ignore == NO)
28402840 {
2841+// Pkt.Node = NODE_DIR;
28412842 if(GetImageIndex(Win, Pos) == 4) // symlink
28422843 Pkt.Node = NODE_FILE;
28432844 else
@@ -2847,6 +2848,18 @@ void MakeSelectedFileList(int Win, int Expand, int All, FILELIST **Base, int *Ca
28472848 memset(&Pkt.Time, 0, sizeof(FILETIME));
28482849 AddFileList(&Pkt, Base);
28492850
2851+// if(Win == WIN_LOCAL)
2852+// MakeLocalTree(Name, Base);
2853+// else
2854+// {
2855+// AskRemoteCurDir(Cur, FMAX_PATH);
2856+//
2857+// if((AskListCmdMode() == NO) &&
2858+// (AskUseNLST_R() == YES))
2859+// MakeRemoteTree1(Name, Cur, Base, CancelCheckWork);
2860+// else
2861+// MakeRemoteTree2(Name, Cur, Base, CancelCheckWork);
2862+// }
28502863 if(GetImageIndex(Win, Pos) != 4) { // symlink
28512864 if(Win == WIN_LOCAL)
28522865 MakeLocalTree(Name, Base);
@@ -3081,8 +3094,9 @@ static void MakeRemoteTree2(char *Path, char *Cur, FILELIST **Base, int *CancelC
30813094
30823095 /* まずディレクトリ名をセット */
30833096 strcpy(Pkt.File, Pos->File);
3097+// Pkt.Node = NODE_DIR;
30843098 Pkt.Link = Pos->Link;
3085- if(Pkt.Link)
3099+ if(Pkt.Link == YES)
30863100 Pkt.Node = NODE_FILE;
30873101 else
30883102 Pkt.Node = NODE_DIR;
@@ -3092,7 +3106,8 @@ static void MakeRemoteTree2(char *Path, char *Cur, FILELIST **Base, int *CancelC
30923106 AddFileList(&Pkt, Base);
30933107
30943108 /* そのディレクトリの中を検索 */
3095- if(!Pkt.Link)
3109+// MakeRemoteTree2(Pos->File, Cur, Base, CancelCheckWork);
3110+ if(Pkt.Link == NO)
30963111 MakeRemoteTree2(Pos->File, Cur, Base, CancelCheckWork);
30973112 }
30983113 Pos = Pos->Next;
--- a/misc.c
+++ b/misc.c
@@ -1155,19 +1155,30 @@ void FileTime2TimeString(FILETIME *Time, char *Buf, int Mode, int InfoExist)
11551155 FileTimeToLocalFileTime(Time, &fTime);
11561156 FileTimeToSystemTime(&fTime, &sTime);
11571157
1158- if(InfoExist & FINFO_DATE)
1159- sprintf(Buf, "%04d/%02d/%02d ", sTime.wYear, sTime.wMonth, sTime.wDay);
1160- else
1161- sprintf(Buf, " ");
1162-
1163- if(InfoExist & FINFO_TIME)
1164- // タイムスタンプのバグ修正
1158+ // タイムスタンプのバグ修正
1159+// if(InfoExist & FINFO_DATE)
1160+// sprintf(Buf, "%04d/%02d/%02d ", sTime.wYear, sTime.wMonth, sTime.wDay);
1161+// else
1162+// sprintf(Buf, " ");
1163+//
1164+// if(InfoExist & FINFO_TIME)
11651165 // sprintf(Buf+11, "%2d:%02d", sTime.wHour, sTime.wMinute);
1166- sprintf(Buf+11, "%2d:%02d:%02d", sTime.wHour, sTime.wMinute, sTime.wSecond);
1167- else
1168- // タイムスタンプのバグ修正
1166+// else
11691167 // sprintf(Buf+11, " ");
1170- sprintf(Buf+11, " ");
1168+ if(InfoExist & (FINFO_DATE | FINFO_TIME))
1169+ {
1170+ if(InfoExist & FINFO_DATE)
1171+ sprintf(Buf, "%04d/%02d/%02d ", sTime.wYear, sTime.wMonth, sTime.wDay);
1172+ else
1173+ sprintf(Buf, " ");
1174+
1175+ if(InfoExist & FINFO_TIME)
1176+ sprintf(Buf+11, "%2d:%02d:%02d", sTime.wHour, sTime.wMinute, sTime.wSecond);
1177+ else
1178+ sprintf(Buf+11, " ");
1179+ }
1180+ else
1181+ Buf[0] = NUL;
11711182 }
11721183 else
11731184 {