OSDN Git Service

This version is stable.
[ffftp/ffftp.git] / ftpproc.c
index c71194a..7fdef82 100644 (file)
--- a/ftpproc.c
+++ b/ftpproc.c
@@ -126,6 +126,9 @@ void DownLoadProc(int ChName, int ForceFile, int All)
        {\r
                DisableUserOpe();\r
 \r
+               // 同時接続対応\r
+               SktShareProh();\r
+\r
                ExistNotify = YES;\r
 //             KeepTransferDialog(YES);\r
 \r
@@ -254,6 +257,9 @@ void DirectDownLoadProc(char *Fname)
        {\r
                DisableUserOpe();\r
 \r
+               // 同時接続対応\r
+               SktShareProh();\r
+\r
                ExistNotify = YES;\r
 //             KeepTransferDialog(YES);\r
 \r
@@ -390,6 +396,9 @@ void MirrorDownloadProc(int Notify)
        {\r
                DisableUserOpe();\r
 \r
+               // 同時接続対応\r
+               SktShareProh();\r
+\r
                Base = NULL;\r
 \r
                if(Notify == YES)\r
@@ -858,6 +867,9 @@ void UpLoadListProc(int ChName, int All)
        {\r
                DisableUserOpe();\r
 \r
+               // 同時接続対応\r
+               SktShareProh();\r
+\r
                // ローカル側で選ばれているファイルをFileListBaseに登録\r
                FileListBase = NULL;\r
                MakeSelectedFileList(WIN_LOCAL, YES, All, &FileListBase, &CancelFlg);\r
@@ -1023,6 +1035,9 @@ void UpLoadDragProc(WPARAM wParam)
        {\r
                DisableUserOpe();\r
 \r
+               // 同時接続対応\r
+               SktShareProh();\r
+\r
                // ローカル側で選ばれているファイルをFileListBaseに登録\r
                FileListBase = NULL;\r
                MakeDroppedFileList(wParam, Cur, &FileListBase);\r
@@ -1179,6 +1194,9 @@ void MirrorUploadProc(int Notify)
        {\r
                DisableUserOpe();\r
 \r
+               // 同時接続対応\r
+               SktShareProh();\r
+\r
                Base = NULL;\r
 \r
                if(Notify == YES)\r
@@ -3142,7 +3160,9 @@ int ProcForNonFullpath(char *Path, char *CurDir, HWND hWnd, int Type)
                        if(Type == 0)\r
                                Cmd = CommandProcCmd(NULL, "CWD %s", Tmp);\r
                        else\r
-                               Cmd = CommandProcTrn(NULL, "CWD %s", Tmp);\r
+                               // 同時接続対応\r
+//                             Cmd = CommandProcTrn(NULL, "CWD %s", Tmp);\r
+                               Cmd = CommandProcTrn((SOCKET)(Type - 1), NULL, "CWD %s", Tmp);\r
 \r
                        if(Cmd/100 != FTP_COMPLETE)\r
                        {\r