Fixed missing assignment of "DIF first sector", now xls files can be bigger than 7 megabytes.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2758 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
parent
a624b7f671
commit
3517fb8a2c
@ -501,7 +501,7 @@ var
|
|||||||
NextDIFC: SECT;
|
NextDIFC: SECT;
|
||||||
Index: SizeUint;
|
Index: SizeUint;
|
||||||
begin
|
begin
|
||||||
if not Assigned(FDIFArray) then begin
|
if Length(FDIFArray)=0 then begin
|
||||||
//Nothing to be freed.
|
//Nothing to be freed.
|
||||||
Result:=true;
|
Result:=true;
|
||||||
exit;
|
exit;
|
||||||
@ -659,6 +659,9 @@ begin
|
|||||||
FATInDIF:=0;
|
FATInDIF:=0;
|
||||||
OffsetInFAT:=0;
|
OffsetInFAT:=0;
|
||||||
Sector:=ComposeFATEntry(DIFIndex,FATInDIF,OffsetInFAT);
|
Sector:=ComposeFATEntry(DIFIndex,FATInDIF,OffsetInFAT);
|
||||||
|
if DIFIndex=1 then begin
|
||||||
|
FHeader._sectDifStart:=Sector
|
||||||
|
end;
|
||||||
//Empty free sector
|
//Empty free sector
|
||||||
GetMem(DIFData,FSectorSize); //This memblock will be freed by UnloadDIF
|
GetMem(DIFData,FSectorSize); //This memblock will be freed by UnloadDIF
|
||||||
FillByte(PBYTE(DIFData)^,FSectorSize,$FF);
|
FillByte(PBYTE(DIFData)^,FSectorSize,$FF);
|
||||||
|
Loading…
Reference in New Issue
Block a user