mirror of
https://github.com/ReneLergner/WPinternals.git
synced 2026-06-21 06:31:02 +10:00
Fix an issue with empty payloads
This commit is contained in:
@@ -704,7 +704,11 @@ namespace WPinternals
|
|||||||
//
|
//
|
||||||
// If you do not order payloads like this, you will get an error, most likely hash mismatch
|
// If you do not order payloads like this, you will get an error, most likely hash mismatch
|
||||||
//
|
//
|
||||||
FlashingPayload[] payloads = GetNonOptimizedPayloads(FlashParts, FFU.ChunkSize, (uint)(Info.WriteBufferSize / FFU.ChunkSize), SetWorkingStatus, UpdateWorkingStatus).OrderBy(x => x.TargetLocations.Count()).ToArray();
|
FlashingPayload[] payloads = new FlashingPayload[0];
|
||||||
|
if (FlashParts != null)
|
||||||
|
{
|
||||||
|
payloads = GetNonOptimizedPayloads(FlashParts, FFU.ChunkSize, (uint)(Info.WriteBufferSize / FFU.ChunkSize), SetWorkingStatus, UpdateWorkingStatus).OrderBy(x => x.TargetLocations.Count()).ToArray();
|
||||||
|
}
|
||||||
|
|
||||||
bool AssumeImageHeaderFallsInGap = true;
|
bool AssumeImageHeaderFallsInGap = true;
|
||||||
bool AllocateAsyncBuffersOnPhone = true;
|
bool AllocateAsyncBuffersOnPhone = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user