index 2bbc03a3a031397b198d21cd1793574c6ca9b612..b8de439d9d38cf500f43e36027734eabf283fde0 100644 (file)
pData := ptr;
Len := size;
Result := True;
+ FLastError := DFWAD_NOERROR;
except
FreeMem(ptr);
raise;
pData := ptr;
Len := p.data.usize;
Result := True;
+ FLastError := DFWAD_NOERROR;
except
FreeMem(ptr);
raise;
begin
if sec = nil then
sec := InsertSectionRAW('');
- if res = nil then
+ if sec = nil then
raise Exception.Create('Failed to create root section');
res := InsertFileInfoS(sec, name, offset, csize, -1, nil);
if res = nil then