mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-10 11:32:46 +02:00
* patch from Giulio for FindFirst return value with no files and SetFAttr with VolumeID - web bug #11247
git-svn-id: trunk@11231 -
This commit is contained in:
parent
0918da7cad
commit
68a4c0347a
@ -489,6 +489,8 @@ begin
|
||||
dosregs.ax:=$714e;
|
||||
msdos(dosregs);
|
||||
LoadDosError;
|
||||
if DosError=2 then
|
||||
DosError:=18;
|
||||
{$ifdef DEBUG_LFN}
|
||||
if (DosError=0) and LogLFN then
|
||||
begin
|
||||
@ -811,6 +813,12 @@ end;
|
||||
|
||||
procedure setfattr(var f;attr : word);
|
||||
begin
|
||||
{ Fail for setting VolumeId. }
|
||||
if ((attr and VolumeID)<>0) then
|
||||
begin
|
||||
doserror:=5;
|
||||
exit;
|
||||
end;
|
||||
copytodos(filerec(f).name,strlen(filerec(f).name)+1);
|
||||
dosregs.edx:=tb_offset;
|
||||
dosregs.ds:=tb_segment;
|
||||
|
Loading…
Reference in New Issue
Block a user