Home | Info | Community | Development | myReactOS | Contact Us
[static]
Definition at line 113 of file hwdisk.c.
{ DISKCONTEXT* Context = FsGetDeviceSpecific(FileId); UCHAR* Ptr = (UCHAR*)Buffer; ULONG i, Length; BOOLEAN ret; *Count = 0; i = 0; while (N > 0) { Length = N; if (Length > Context->SectorSize) Length = Context->SectorSize; ret = MachDiskReadLogicalSectors( Context->DriveNumber, Context->SectorNumber + Context->SectorOffset + i, 1, (PVOID)DISKREADBUFFER); if (!ret) return EIO; RtlCopyMemory(Ptr, (PVOID)DISKREADBUFFER, Length); Ptr += Length; *Count += Length; N -= Length; i++; } return ESUCCESS; }