mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 08:53:02 +00:00
[FREELDR]
Improve readability of sector calculation svn path=/trunk/; revision=57141
This commit is contained in:
parent
10852819e3
commit
1a0a97d909
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue