2
0
Эх сурвалжийг харах

* try to solve bug report 2102 part B

pierre 23 жил өмнө
parent
commit
cd7040b19e

+ 5 - 1
fv/stddlg.pas

@@ -2519,7 +2519,11 @@ begin
     FindFirst(ExpPath, Directory, SR);
     FindFirst(ExpPath, Directory, SR);
     PathValid := (DosError = 0) and (SR.Attr and Directory <> 0);
     PathValid := (DosError = 0) and (SR.Attr and Directory <> 0);
 {$ifdef NetDrive}
 {$ifdef NetDrive}
-    if DosError=66 then
+    if (DosError=66)
+{$ifdef win32}
+       or (DosError=123)
+{$endif win32}
+       then
       begin
       begin
       {$ifdef fpc}
       {$ifdef fpc}
         FindClose(SR);
         FindClose(SR);

+ 5 - 1
fvision/stddlg.pas

@@ -2519,7 +2519,11 @@ begin
     FindFirst(ExpPath, Directory, SR);
     FindFirst(ExpPath, Directory, SR);
     PathValid := (DosError = 0) and (SR.Attr and Directory <> 0);
     PathValid := (DosError = 0) and (SR.Attr and Directory <> 0);
 {$ifdef NetDrive}
 {$ifdef NetDrive}
-    if DosError=66 then
+    if (DosError=66)
+{$ifdef win32}
+       or (DosError=123)
+{$endif win32}
+       then
       begin
       begin
       {$ifdef fpc}
       {$ifdef fpc}
         FindClose(SR);
         FindClose(SR);