* fpgetcwd syscall edition returnvalue fix.

git-svn-id: trunk@5258 -
This commit is contained in:
marco 2006-11-05 21:52:58 +00:00
parent 2659c32078
commit 6b6cf119ef

View File

@ -506,6 +506,7 @@ begin
ret := do_syscall(syscall_nr___getcwd,TSysParam(pt),TSysParam( ept - pt)); ret := do_syscall(syscall_nr___getcwd,TSysParam(pt),TSysParam( ept - pt));
If (ret = 0) Then If (ret = 0) Then
begin
If (pt[0] <> '/') Then If (pt[0] <> '/') Then
Begin Begin
bpt := pt; bpt := pt;
@ -518,7 +519,10 @@ begin
ept^:=c; ept^:=c;
dec(ept); dec(ept);
End; End;
End; End
end
else
pt:=nil;
Fpgetcwd:=pt; Fpgetcwd:=pt;
end; end;