mirror of
https://github.com/sp00nznet/xboxrecomp.git
synced 2026-12-05 10:03:01 +00:00
e7f62046f6
NT resolves an OBJECT_ATTRIBUTES name that is not a full path against its RootDirectory handle, and XAPI's save-game code relies on it: it opens the save directory, then each file in it by its bare name. The Win32 backend joins such names to the handle's path (translate_obj_path); the POSIX backend sent the bare name through the path table, which created it in the process's working directory or failed with STATUS_OBJECT_PATH_NOT_FOUND. SSX 3 on Linux said "Unable to save" when it overwrote an existing save. posix_obj_path joins the name to the directory handle's host path, as the rename path already did, for NtCreateFile (and so NtOpenFile/IoCreateFile), NtDeleteFile and NtQueryFullAttributesFile. tests/kernel_file_relative covers create, reopen, query, delete and a full path with a root set; it fails 3 of 9 checks without the change and passes with it (Linux, GCC). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>