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

git-svn-id: trunk@29531 -
This commit is contained in:
Tomas Hajny 2015-01-23 01:19:22 +00:00
parent 5176a069cf
commit 2e5054186c

View File

@ -112,7 +112,8 @@ Var
begin
P:=Path;
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
OSErrorWatch (DosError);
fsearch := StrPas (@A);