HLE: return XAsync payloads for nonnegative results #520
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!520
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/520/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?
@Quat3rnion on GitHub · 2026-11-24 04:25 UTC · original
Quat3rnion:victory-xasync-payload→main· +54 −3 · 1 files · 1 commits · merged 2026-11-24 08:17 UTCWhat
XAsyncGetResultSizeandXAsyncGetResulttreated onlyS_OKas success.A provider that completed with
S_FALSE(or any other nonnegative HRESULT)and a payload left the caller's size and result buffers untouched, and never
released the call. Any nonnegative completion is a success and carries its
result. Both entry points now use that rule, so the payload is written, the
bytes-used count is reported and the call ends.
An AI tool wrote part of this change.
Tested
cargo test --workspace: 165 passed, 0 failed, 3 ignored. A new regression completes a call withS_FALSEand an eight-byte payload, then checks the status, size, result value, used count and that the call is released.cargo check --target x86_64-pc-windows-gnu --workspace --testspasses. No Windows host here.cargo xtask policypasses (150 files ok). No game files or data from them were added.Checklist
cargo xtask policypasses. No game files or data from them were added.