[FREELDR]

Improve readability of sector calculation

svn path=/trunk/; revision=57141
This commit is contained in:
Timo Kreuzer 2012-08-23 12:02:30 +00:00
parent 10852819e3
commit 1a0a97d909

View file

@ -1338,8 +1338,7 @@ BOOLEAN FatReadVolumeSectors(PFAT_VOLUME_INFO Volume, ULONG SectorNumber, ULONG
// //
// Seek to right position // Seek to right position
// //
Position.HighPart = SectorNumber >> 23; Position.QuadPart = (ULONGLONG)SectorNumber * 512;
Position.LowPart = SectorNumber << 9;
ret = ArcSeek(Volume->DeviceId, &Position, SeekAbsolute); ret = ArcSeek(Volume->DeviceId, &Position, SeekAbsolute);
if (ret != ESUCCESS) if (ret != ESUCCESS)
{ {