| 355 |
|
DatFileStream.Seek(0, soFromBeginning); |
| 356 |
|
Stream_Body.CopyFrom(DatFileStream, DatFileStream.Size); |
| 357 |
|
if (Stream_Body.Size mod 32) > 0 then |
| 358 |
+ |
begin |
| 359 |
+ |
ShowMessage( |
| 360 |
+ |
IntToStr(FileID) + '-' + FileInfo.Name + '.' + FileInfo.Extension + #13#10 + |
| 361 |
+ |
IntToStr(Stream_Body.Size)); |
| 362 |
|
Stream_Body.Write(EmptyBytes[0], 32 - (Stream_Body.Size mod 32)); |
| 363 |
+ |
end; |
| 364 |
|
end |
| 365 |
|
else |
| 366 |
|
FilesHeader[FileID].DataAddr := 0; |
| 669 |
|
BoolToStr(RawLinks[i].LocSep) + ', 0);'; |
| 670 |
|
Query.ExecSQL; |
| 671 |
|
end; |
| 667 |
– |
if ((i mod 100) = 0) and (FileID > 0) then |
| 668 |
– |
begin |
| 669 |
– |
Database.Commit(False); |
| 670 |
– |
Database.StartTransaction; |
| 671 |
– |
end; |
| 672 |
|
end; |
| 673 |
|
end; |
| 674 |
|
|