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