[Kernel] XFile: Override file position if offset is provided
This commit is contained in:
@@ -157,6 +157,10 @@ X_STATUS XFile::Read(uint32_t buffer_guest_address, uint32_t buffer_length,
|
|||||||
xe::global_critical_region::AcquireDirect(),
|
xe::global_critical_region::AcquireDirect(),
|
||||||
buffer_guest_address, buffer_length, true, true);
|
buffer_guest_address, buffer_length, true, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (byte_offset) {
|
||||||
|
position_ = byte_offset;
|
||||||
|
}
|
||||||
position_ += bytes_read;
|
position_ += bytes_read;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user