mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-04 13:07:32 +00:00
The macOS sceKernelGetdirentries wrote *basep and the entry records into buf without entering GuestArena::HostWrite, so the write-watch host-write path never saw those writes. It now opens HostWrite guards for buf over nbytes and for basep before it moves the descriptor offset, and holds them through every write, as the Linux path does. It also rejects a non-directory with EINVAL before the guards, matching Linux.