pe: route winhttp, mfplat, mfreadwrite and gameinput as Windows #1060
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1067"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-11-24T00:08:46Z.
Change
tools/import_routing.pylabels Windows system DLLs from an explicit list. Four in-box System32 modules were missing from it, socompat_report.pyandintake_exe.pyreported every import from them asunsupported:winhttp.dllmfplat.dllmfreadwrite.dllgameinput.dllThis adds the four names to the
windowsset and bumpsPOLICY_VERSIONfrom 1 to 2, because the same input image now gets different routes. Matching stays exact and case-insensitive, and no prefix rule is added. Routes stay candidate andnot_checked: no export is resolved and no provider is proven.Tests
tests/compat_report_check.py:check_policyasserts all four names (plusGameInput.dllfor case) as("windows", "Windows system DLL"). Two near misses,winhttp2.dllandgameinputredist.dll, must stayunsupported.winhttp.dll!WinHttpOpenimport, so the JSON summary (8 imports, 3 Windows routes) and the sorted rows cover the report path.Negative controls:
winhttp.dllremoved fails withAssertionError: winhttp.dll.Verification
Environment: Windows 11 Pro build 26300, MSVC 19.44.35207.1, Python 3.13.1,
devpreset, branch based on9a839a4.compat report synthetic checks passedstatic_exe_intake,conditional_import_pathsandpe_package_import_closure.pe_package_preflight_check.py,intake/paths_check.py,dependency_paths_check.py,docs_links_check.pyandbidi_controls_check.pyalso pass.Local observation (no image attached): on the main executable from the #870 checkpoints, the Windows route goes from 318 to 341 imports and
unsupportedfrom 252 to 229. A local read of this build's System32 export tables found all 23 affected names (15, 6, 1 and ordinal 1). That check is not part of the policy, which still does not resolve exports.Notes:
mfplat.dllandmfreadwrite.dllare absent on Windows N editions without the Media Feature Pack. The policy names candidate routes, so that is left to runtime resolution.gameinput.dllbinds from System32 by ordinal, as noted for the GameInput slice on #870.Refs #870.
🤖 Generated with Claude Code