user: implement UnregisterClassA and UnregisterClassW #1138
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1138
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1138"
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?
@Ivankiosan on GitHub · 2026-11-24 12:24 UTC · original
Ivankiosan:user-unregister-class→main· +77 −1 · 1 files · 1 commits · openThe console's minuserx.dll / ext-ms-win-rtcore-ntuser-window-* family implements window creation, window procedures, and class lifecycle for console titles. While RegisterClassExA was implemented in crates/xcl/src/hle/user.rs, the corresponding unregistration entrypoints (UnregisterClassA and UnregisterClassW) were not implemented. Titles or engine sub-frameworks unregistering window classes during teardown or re-initialization would drop to fallback stubs or fail unexpectedly.
What is in it
ame(), and forwards to UnregisterClassW.
Tested
Regression run
main:
xcl-smoke v1 commit: 64b3f35599bb7102f55d640e1a791e7d6dd3b175 gpu: AMD Radeon RX 7600 title: 419239bf seconds: 10 exit: 0x0 frames shown: 1 (PresentX 1) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 7754 MBPR head:
xcl-smoke v1 commit: e640169179815062df69db38f997336a18c26851 gpu: AMD Radeon RX 7600 title: 419239bf seconds: 10 exit: 0x0 frames shown: 1 (PresentX 1) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 8172 MBNot tested
AI use
github-bot referenced this pull request2026-11-26 04:59:09 +00:00
@DavidM1911 on GitHub · 2026-11-24 12:57 UTC · original
Independent verification on current
main384f7f7(branch already contains it — clean).Machine: Windows 11, Ryzen 9 7900X; Rust stable MSVC, debug.
cargo test -p xcl --lib user::: 4 passed, 0 failed — includes the newunregister_class_unregisters_registered_classes_and_rejects_nullplus the existing register-class validation tests.AI use: test runs by Devin (Cognition, SWE-2); no code changes.
@JoaoPauluu on GitHub · 2026-11-24 14:34 UTC · original
A run on Linux under Wine.
Tested
x86_64-pc-windows-gnu.e640169as it is (based on47efa2e), no uncommitted changes. The lib test binary runs under Wine, one test per process (--exact).RegisterClass*/UnregisterClass*are Wine's user32 here.hle::user::tests::unregister_class_unregisters_registered_classes_and_rejects_null: ok, no SKIPPED.Not tested
AI use
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.