OSDN Git Service

Enlarge buffers for replies on transferring files.
[ffftp/ffftp.git] / local.c
diff --git a/local.c b/local.c
index 3988c6d..619d6ef 100644 (file)
--- a/local.c
+++ b/local.c
@@ -28,6 +28,8 @@
 /============================================================================*/\r
 \r
 #define        STRICT\r
+// IPv6対応\r
+#include <winsock2.h>\r
 #include <windows.h>\r
 #include <stdio.h>\r
 #include <stdlib.h>\r
@@ -181,13 +183,17 @@ void DoLocalRENAME(char *Src, char *Dst)
 void DispFileProperty(char *Fname)\r
 {\r
        SHELLEXECUTEINFO sInfo;\r
+       // 異なるファイルが表示されるバグ修正\r
+       char Fname2[FMAX_PATH+1];\r
 \r
        memset(&sInfo, NUL, sizeof(SHELLEXECUTEINFO));\r
        sInfo.cbSize = sizeof(SHELLEXECUTEINFO);\r
        sInfo.fMask = SEE_MASK_INVOKEIDLIST;\r
        sInfo.hwnd = NULL;              //GetMainHwnd();\r
        sInfo.lpVerb = "Properties";\r
-       sInfo.lpFile = Fname;\r
+       // 異なるファイルが表示されるバグ修正\r
+//     sInfo.lpFile = Fname;\r
+       sInfo.lpFile = MakeDistinguishableFileName(Fname2, Fname);\r
        sInfo.lpParameters = NULL;\r
        sInfo.lpDirectory = NULL;\r
        sInfo.nShow = SW_NORMAL;\r