diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-07-07 01:10:22 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-07-07 01:10:22 +0200 |
| commit | a09ca66b2e7d8a05b0da4218b82d1897bce721ba (patch) | |
| tree | 0ceddce07a73f84d83f967db47cd34c4c8c5d468 /dev | |
| parent | 6e0a8d09c3cfa1ddc15c12ad966a660d21731709 (diff) | |
fix: FileMgr: use `sz` when `Reading` blob inside file.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev')
| -rw-r--r-- | dev/kernel/KernelKit/FileMgr.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/dev/kernel/KernelKit/FileMgr.h b/dev/kernel/KernelKit/FileMgr.h index 18593f5c..641dd448 100644 --- a/dev/kernel/KernelKit/FileMgr.h +++ b/dev/kernel/KernelKit/FileMgr.h @@ -285,12 +285,10 @@ class FileStream final { this->fFileRestrict != kFileMgrRestrictReadBinary) return nullptr; - NE_UNUSED(sz); - auto man = FSClass::GetMounted(); if (man) { - VoidPtr ret = man->Read(name, fFile, kFileReadAll, 0); + VoidPtr ret = man->Read(name, fFile, kFileReadAll, sz); return ret; } |
