[FREELDR] i386: support drives bigger than ~4GB

See issue #6669 for more details.

svn path=/trunk/; revision=56993
This commit is contained in:
Hervé Poussineau 2012-07-30 06:12:58 +00:00
parent df58b26774
commit e78aab93b0

View file

@ -150,8 +150,7 @@ static LONG DiskSeek(ULONG FileId, LARGE_INTEGER* Position, SEEKMODE SeekMode)
if (Position->LowPart & (Context->SectorSize - 1)) if (Position->LowPart & (Context->SectorSize - 1))
return EINVAL; return EINVAL;
/* FIXME: take HighPart into account */ Context->SectorNumber = (ULONG)(Position->QuadPart / Context->SectorSize);
Context->SectorNumber = Position->LowPart / Context->SectorSize;
return ESUCCESS; return ESUCCESS;
} }