FFFTPのソースコードです。
Revisão | b2bb9a2100f6e9f15626161761df0c094b975d19 (tree) |
---|---|
Hora | 2011-12-04 02:32:22 |
Autor | s_kawamoto <s_kawamoto@user...> |
Commiter | s_kawamoto |
Fix bugs of routines for double click.
@@ -444,9 +444,11 @@ static void doTransferRemoteFile(void) | ||
444 | 444 | int CancelFlg = NO; |
445 | 445 | char LocDir[FMAX_PATH+1]; |
446 | 446 | char TmpDir[FMAX_PATH+1]; |
447 | - char buf[32]; | |
447 | + // 環境依存の不具合対策 | |
448 | +// char buf[32]; | |
448 | 449 | int i; |
449 | - DWORD pid; | |
450 | + // 環境依存の不具合対策 | |
451 | +// DWORD pid; | |
450 | 452 | |
451 | 453 | // すでにリモートから転送済みなら何もしない。(2007.9.3 yutaka) |
452 | 454 | if (remoteFileListBase != NULL) |
@@ -470,7 +472,7 @@ static void doTransferRemoteFile(void) | ||
470 | 472 | GetAppTempPath(TmpDir); |
471 | 473 | _mkdir(TmpDir); |
472 | 474 | SetYenTail(TmpDir); |
473 | - strcat(TmpDir, "transfer"); | |
475 | + strcat(TmpDir, "file"); | |
474 | 476 | _mkdir(TmpDir); |
475 | 477 | #if 0 |
476 | 478 | if (TmpDir[strlen(TmpDir) - 1] == '\\') { |
@@ -2056,6 +2056,10 @@ static void ExitProc(HWND hWnd) | ||
2056 | 2056 | |
2057 | 2057 | // 環境依存の不具合対策 |
2058 | 2058 | GetAppTempPath(Tmp); |
2059 | + SetYenTail(Tmp); | |
2060 | + strcat(Tmp, "file"); | |
2061 | + _rmdir(Tmp); | |
2062 | + GetAppTempPath(Tmp); | |
2059 | 2063 | _rmdir(Tmp); |
2060 | 2064 | |
2061 | 2065 | if(RasClose == YES) |
@@ -2131,6 +2135,10 @@ void DoubleClickProc(int Win, int Mode, int App) | ||
2131 | 2135 | |
2132 | 2136 | strcpy(Remote, TmpPath); |
2133 | 2137 | SetYenTail(Remote); |
2138 | + // 環境依存の不具合対策 | |
2139 | + strcat(Remote, "file"); | |
2140 | + _mkdir(Remote); | |
2141 | + SetYenTail(Remote); | |
2134 | 2142 | if (UseDiffViewer == YES) { |
2135 | 2143 | strcat(Remote, "remote."); |
2136 | 2144 | } |