* 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:
Tomas Hajny 2008-06-15 15:14:07 +00:00
parent 0918da7cad
commit 68a4c0347a

View File

@ -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;