mirror of
https://github.com/ReneLergner/WPinternals.git
synced 2026-06-18 05:10:11 +10:00
Implement Qualcomm Sahara VIP and fix a few bugs
* Qualcomm Sahara VIP * Project Cleanup * Allow unlocking an already unlocked phone
This commit is contained in:
@@ -39,7 +39,7 @@ namespace DiscUtils.Fat
|
||||
_firstFatSector = firstFatSector;
|
||||
_numFats = numFats;
|
||||
|
||||
_stream.Position = (firstFatSector + fatSize * activeFat) * Sizes.Sector;
|
||||
_stream.Position = (firstFatSector + (fatSize * activeFat)) * Sizes.Sector;
|
||||
_buffer = new FatBuffer(type, StreamUtilities.ReadExact(_stream, (int)(fatSize * Sizes.Sector)));
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ namespace DiscUtils.Fat
|
||||
{
|
||||
for (int i = 0; i < _numFats; ++i)
|
||||
{
|
||||
_buffer.WriteDirtyRegions(_stream, _firstFatSector * Sizes.Sector + _buffer.Size * i);
|
||||
_buffer.WriteDirtyRegions(_stream, (_firstFatSector * Sizes.Sector) + (_buffer.Size * i));
|
||||
}
|
||||
|
||||
_buffer.ClearDirtyRegions();
|
||||
|
||||
Reference in New Issue
Block a user