Storage: a path buffer too small fails with E_FAIL, as on Xbox #371
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!371
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/371/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@marquezinii on GitHub · 2026-11-24 02:43 UTC · original
marquezinii:fix/pls-path-small-buffer→main· +6 −0 · 1 files · 1 commits · merged 2026-11-24 08:06 UTCXPersistentLocalStorageGetPathwith a buffer smaller than the path returnedHRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER)throughput_string. The GDK reference says that is the PC result, and that Xbox devices getE_FAIL: "If the function fails because pathSize is less than the length of the PLS path, the return value is set to E_FAIL for Xbox devices and to HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER) for PC devices."Slot 0x20 is the one Grand Theft Auto VI calls, so this answers as the console would.
Tested: the existing storage test now also asks with a 3-byte buffer for
X:\; it got 0x8007007A before the change and getsE_FAILnow.cargo test -p victory-hlepasses.https://learn.microsoft.com/gaming/gdk/docs/reference/system/xpersistentlocalstorage/functions/xpersistentlocalstoragegetpath
@jeremygold02 on GitHub · 2026-11-24 04:07 UTC · original
Thanks @marquezinii for this platform-compatibility fix. I tested head
376b3cf1785380cc397fdf89027f46e3472a6b55with:Result: 1 passed, 0 failed (85 filtered out). The storage-object test now covers a too-small path buffer returning
E_FAIL, alongside the drive-root path and quota behavior. This is a unit test of the HLE object; I did not exercise a title call.