mirror of
https://github.com/MobileTooling/UnifiedFlashingPlatform.git
synced 2026-07-27 12:48:47 -07:00
fix: header position variable usage
This commit is contained in:
@@ -472,9 +472,9 @@ namespace UnifiedFlashingPlatform
|
|||||||
while (HeaderPosition < CombinedFFUHeaderSize)
|
while (HeaderPosition < CombinedFFUHeaderSize)
|
||||||
{
|
{
|
||||||
uint PayloadSize = Info.WriteBufferSize;
|
uint PayloadSize = Info.WriteBufferSize;
|
||||||
if ((CombinedFFUHeaderSize - Position) < PayloadSize)
|
if ((CombinedFFUHeaderSize - HeaderPosition) < PayloadSize)
|
||||||
{
|
{
|
||||||
PayloadSize = (uint)(CombinedFFUHeaderSize - Position);
|
PayloadSize = (uint)(CombinedFFUHeaderSize - HeaderPosition);
|
||||||
FfuHeader = new byte[PayloadSize];
|
FfuHeader = new byte[PayloadSize];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user