Browse Source

* include current directory in the list of searched directories in FSearch as expected in TP/BP

git-svn-id: trunk@29531 -
Tomas Hajny 10 years ago
parent
commit
2e5054186c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      rtl/os2/dos.pas

+ 2 - 1
rtl/os2/dos.pas

@@ -112,7 +112,8 @@ Var
 begin
 begin
   P:=Path;
   P:=Path;
   D:=DirList;
   D:=DirList;
-  DosError := DosSearchPath (dsIgnoreNetErrs, PChar(D), PChar(P), @A, 255);
+  DosError := DosSearchPath (dsCurrentDir or dsIgnoreNetErrs, PChar(D),
+                                                            PChar(P), @A, 255);
   if DosError <> 0 then
   if DosError <> 0 then
    OSErrorWatch (DosError);
    OSErrorWatch (DosError);
   fsearch := StrPas (@A);
   fsearch := StrPas (@A);