*/}}
YimingWu hai 4 meses
pai
achega
d59564b1c3
Modificáronse 1 ficheiros con 5 adicións e 2 borrados
  1. 5 2
      resources/la_operators.c

+ 5 - 2
resources/la_operators.c

@@ -603,8 +603,11 @@ void la_FileBrowserNewDirectory(laFileBrowser* fb,char* path){
     }
 #endif
 #ifdef _WIN32
-    if (p[len - 1] != U'\\') strcat(p, "\\");
-    //...
+    if (p[len - 1] != U'\\' && p[len - 1] != U'/') strcat(p, "\\");
+    char usepath[2048]; sprintf(usepath,"%s%s",p,path);
+    if(!_mkdir(usepath)){
+        strcpy(fb->Path,usepath);
+    }
 #endif
     la_FileBrowserRebuildList(fb); laRecalcCurrentPanel();
 }