mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 14:27:59 +02:00
* fpgetcwd syscall edition returnvalue fix.
git-svn-id: trunk@5258 -
This commit is contained in:
parent
2659c32078
commit
6b6cf119ef
@ -506,6 +506,7 @@ begin
|
||||
|
||||
ret := do_syscall(syscall_nr___getcwd,TSysParam(pt),TSysParam( ept - pt));
|
||||
If (ret = 0) Then
|
||||
begin
|
||||
If (pt[0] <> '/') Then
|
||||
Begin
|
||||
bpt := pt;
|
||||
@ -518,7 +519,10 @@ begin
|
||||
ept^:=c;
|
||||
dec(ept);
|
||||
End;
|
||||
End;
|
||||
End
|
||||
end
|
||||
else
|
||||
pt:=nil;
|
||||
Fpgetcwd:=pt;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user