Skip to content

Commit

Permalink
Set buffer to 65Kb for imaging and verification
Browse files Browse the repository at this point in the history
  • Loading branch information
tedsmith committed Aug 18, 2015
1 parent 82dab04 commit 51071e5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions UYaffi.lfm
Expand Up @@ -29,6 +29,7 @@ object frmYaffi: TfrmYaffi
Width = 29
Caption = 'Disk:'
ParentColor = False
Visible = False
end
object Label2: TLabel
Left = 16
Expand Down
4 changes: 2 additions & 2 deletions UYaffi.pas
Expand Up @@ -1632,7 +1632,7 @@ function VerifyDDImage(fsImageName : TFileStream; ImageFileSize : Int64) : strin
SHA1ImageVerificationDigest : TSHA1Digest;

// a 1Mb buffer for verification.
Buffer : array [0..1048575] of byte;
Buffer : array [0..65535] of byte;
BytesRead : integer;
TotalBytesRead : Int64;

Expand Down Expand Up @@ -2082,7 +2082,7 @@ function VerifyE01Image(strImageName : widestring) : string;
SHA1ctxImageVerification : TSHA1Context;
SHA1ImageVerificationDigest : TSHA1Digest;

Buffer : array [0..1048575] of byte;
Buffer : array [0..65535] of byte;
BytesRead : integer;
TotalBytesRead, ImageFileSize : Int64;

Expand Down
1 change: 1 addition & 0 deletions yaffi.lpi
Expand Up @@ -89,6 +89,7 @@
</SearchPaths>
<Linking>
<Debugging>
<GenerateDebugInfo Value="False"/>
<DebugInfoType Value="dsDwarf2Set"/>
</Debugging>
<Options>
Expand Down
6 changes: 3 additions & 3 deletions yaffi.lps
Expand Up @@ -21,10 +21,11 @@
<HasResources Value="True"/>
<ResourceBaseClass Value="Form"/>
<UnitName Value="UYaffi"/>
<IsVisibleTab Value="True"/>
<EditorIndex Value="1"/>
<WindowIndex Value="1"/>
<TopLine Value="1616"/>
<CursorPos X="21" Y="1649"/>
<TopLine Value="1400"/>
<CursorPos X="62" Y="1414"/>
<UsageCount Value="200"/>
<Loaded Value="True"/>
<LoadedDesigner Value="True"/>
Expand Down Expand Up @@ -61,7 +62,6 @@
<HasResources Value="True"/>
<ResourceBaseClass Value="Form"/>
<UnitName Value="uProgress"/>
<IsVisibleTab Value="True"/>
<EditorIndex Value="5"/>
<WindowIndex Value="1"/>
<TopLine Value="8"/>
Expand Down

0 comments on commit 51071e5

Please sign in to comment.