OSDN Git Service

Add support for retrying file transfer.
[ffftp/ffftp.git] / local.c
diff --git a/local.c b/local.c
index 299ed0f..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
@@ -182,8 +184,6 @@ void DispFileProperty(char *Fname)
 {\r
        SHELLEXECUTEINFO sInfo;\r
        // 異なるファイルが表示されるバグ修正\r
-       // UNCでない場合に末尾に半角スペースを置くと拡張子の補完がされなくなる\r
-       // 現在UNC対応の予定は無い\r
        char Fname2[FMAX_PATH+1];\r
 \r
        memset(&sInfo, NUL, sizeof(SHELLEXECUTEINFO));\r
@@ -193,9 +193,7 @@ void DispFileProperty(char *Fname)
        sInfo.lpVerb = "Properties";\r
        // 異なるファイルが表示されるバグ修正\r
 //     sInfo.lpFile = Fname;\r
-       strcpy(Fname2, Fname);\r
-       strcat(Fname2, " ");\r
-       sInfo.lpFile = Fname2;\r
+       sInfo.lpFile = MakeDistinguishableFileName(Fname2, Fname);\r
        sInfo.lpParameters = NULL;\r
        sInfo.lpDirectory = NULL;\r
        sInfo.nShow = SW_NORMAL;\r