Repository navigation
acphal: PopMessage returns a full-width Win32 BOOL - #463
DavidM1911 wants to merge 2 commits into
Conversation
hal_pop returned a 1-byte Rust bool through extern "system": only AL was defined, so a console caller testing all of EAX could see false as nonzero. Return i32 1/0 like ApuIsVirtualAddressValid does. Part of xcl-dev#329. Assisted-by: Devin (SWE-2 Flash Medium)
|
At |
|
Code audit + NVIDIA RTX 5080 test run on ReviewLooks clean — returning Tested
Not tested
AI use: code review and test run orchestrated with Antigravity (Gemini 4 Neon) on the hardware listed above. |
|
Re-ran the regression smoke on the new head
|
|
Test run of Tested
Review: Returning a full-width Win32 Not tested: no retail title or regression run (I have no unpacked game), no Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code. |
Part of #329 (item 1).
hal_popreturned a 1-byte Rustboolthroughextern "system": onlyALwas defined, so a console caller testing all ofEAXcould observefalseas nonzeroTRUEand process a stale or uninitializedMessage. It now returnsi321/0, matching howApuIsVirtualAddressValidalready answers a Win32BOOLin the same file.What is in it
crates/xcl/src/hle/acphal.rs:hal_popreturnsi32; the module doc line forPopMessagesaysBOOL; a test calls the vtable slot through a 32-bit-returning signature and checks empty → 0, submitted command → 1 with the rightkind/id.Tested
x86_64-pc-windows-msvc:cargo test -p xcl --lib acphal: 8 passed, 0 failedcargo test --workspace -- --test-threads=4: 677 passed, 0 failed, 41 ignoredscripts/smoke.ps1 -Seconds 60,cargo build --release -p xcl:main
a6f5f7a:this PR's head
6f7f4fe:Not tested
AI use