Repository navigation
win32: SteamSetup runs through its wizard without black windows - #77
Conversation
…ndows Every WS_CHILD window was its own PRISM window, shown as a blank black window and counted against the compositor's 32-window limit. SteamSetup (NSIS) creates a dozen controls per page, so it opened many black windows. A child now stays hidden in PRISM and draws into its top-level ancestor's surface (Surface::into_sub), presents through the ancestor, repaints after a parent erase and gets the pointer messages for its rectangle. The stock BUTTON, STATIC and EDIT classes draw and send WM_COMMAND on a click. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
GetProcAddress(shfolder, SHGetFolderPathW) failed for 32-bit programs because the bridge had no signature for it. Dialog pages had a black background because the OSyxDialog class had no brush. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…words
Page changes in SteamSetup stopped after the first click: every child
control still owned a hidden PRISM window, and the compositor cut the
client off at 32 windows ("too many surfaces"). A WS_CHILD window is now
only a Win32 object (Win::win is None) drawn into its ancestor's surface.
SetWindowLong/GetWindowLong on a dialog now serve DWL_MSGRESULT,
DWL_DLGPROC and DWL_USER, so nsDialogs can subclass the NSIS main window
and handle the Next button.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ge NtQuerySystemInformation A thread created by a 32-bit program called DllMain of its PE32 DLLs (System.dll) as 64-bit code and crashed with 0xc0000005 when the Steam installer began copying files. run_thread32 now delivers DLL_THREAD_ATTACH and DETACH through call32. NtQuerySystemInformation gets its bridge signature and the 44-byte SYSTEM_BASIC_INFORMATION of 32-bit callers. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
Caution Review failedThe pull request is closed. Walkthrough
Merge Risk:
|
Summary
SteamSetup (32-bit NSIS installer) opened many black windows and stopped after the first page. It now shows a single window and runs the whole wizard in QEMU: Welcome, Language, Install location, file copy, "Completing Steam Setup". Files land in
/Program Files/Steam.The branch also carries the earlier Steam/Zen API parity work (
eed49d0,8ab817c,ab5a1af).Fixes
WS_CHILD) no longer own a PRISM window; they draw into their top-level ancestor's surface (removes the black windows and the compositor's 32-window limit).BUTTON,STATICandEDITclasses draw; a click sendsWM_COMMAND.DWL_MSGRESULT,DWL_DLGPROCandDWL_USER, so nsDialogs can subclass the NSIS main window and Next works.SHGetFolderPathW/AandNtQuerySystemInformation.DLL_THREAD_ATTACH/DETACHof PE32 DLLs run throughcall32.Surface::into_subinboot/gfxwith a test.🤖 Generated with Claude Code