Repository navigation
Conversation
libHttpClient stores *bufferUsed before returning E_PENDING (and on failure HRESULTs). Leaving the out-parameter untouched kept a caller's sentinel. Same class as GetResultSize (xcl-dev#1201). Assisted-by: Cursor Auto (Composer) Co-authored-by: Cursor <cursoragent@cursor.com>
|
Independent verification on current Machine: Windows 11, Ryzen 9 7900X; Rust stable MSVC, debug.
AI use: test runs by Devin (Cognition, SWE-2); no code changes. |
|
Regression run of Against the limits in CONTRIBUTING.md: 99 % of AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, AI use: Claude Code (Claude Opus 5.5) built both trees and ran |
XAsyncGetResultreturnedE_PENDING(and some failure HRESULTs) without writing*used. libHttpClient always writes*bufferUsedfirst (0 when there is no result yet), so a caller's leftover sentinel could look like a real length.Related to #1201 (
GetResultSize); this coversGetResult's*usedout-parameter. Open #1188 is about preserving non-zero success HRESULTs, not this.What is in it
crates/xcl/src/hle/xgameruntime/xasync.rs: write*used = 0on pending and failure paths; unit test with a0xDEADsentinelTested
rustc 1.97.1MSVC debugcargo test -p xcl --lib xasync::tests -- --test-threads=4: 15 passed, 0 failed, 0 ignoredRegression run
crates/xcl/srcoutside tests changed.Not tested
cargo test --workspacescripts/smoke.ps1on a retail Series titleAI use