mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-20 11:09:23 +02:00
parent
ace95e550b
commit
ebd1c6026c
@ -422,10 +422,15 @@ Var
|
|||||||
Begin
|
Begin
|
||||||
SystemFileName:=ToSingleByteFileSystemEncodedFileName(Filename);
|
SystemFileName:=ToSingleByteFileSystemEncodedFileName(Filename);
|
||||||
New(FS);
|
New(FS);
|
||||||
FillChar(FS, SizeOf(FS^), 0);
|
RC := DosQueryPathInfo (PChar (SystemFileName), ilStandard, FS, SizeOf (FS^));
|
||||||
FS^.AttrFile:=Attr;
|
if RC = 0 then
|
||||||
RC := DosSetPathInfo(PChar (SystemFileName), ilStandard, FS, SizeOf(FS^), 0);
|
begin
|
||||||
if RC <> 0 then
|
FS^.AttrFile:=Attr;
|
||||||
|
RC := DosSetPathInfo(PChar (SystemFileName), ilStandard, FS, SizeOf(FS^), 0);
|
||||||
|
if RC <> 0 then
|
||||||
|
OSErrorWatch (RC);
|
||||||
|
end
|
||||||
|
else
|
||||||
OSErrorWatch (RC);
|
OSErrorWatch (RC);
|
||||||
Result := - longint (RC);
|
Result := - longint (RC);
|
||||||
Dispose(FS);
|
Dispose(FS);
|
||||||
|
Loading…
Reference in New Issue
Block a user