← Back to Pull requests

Use SysNative to avoid WOW64 redirection #20826

Closed
YexuanXiao closed this pull request without merging on Oct 20, 2026 14:17 UTC
View on GitHub
YexuanXiao YexuanXiao commented on Oct 20, 2026 13:25 UTC
Author

Summary of the Pull Request

The doc for File System Redirector says:

32-bit applications can access the native system directory by substituting %windir%\Sysnative for %windir%\System32. WOW64 recognizes Sysnative as a special alias used to indicate that the file system should not redirect the access. This mechanism is flexible and easy to use, therefore, it is the recommended mechanism to bypass file system redirection. Note that 64-bit applications cannot use the Sysnative alias as it is a virtual directory not a real one.

And it can indeed simplify the code, so let's use it.

References and Relevant Issues

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

PR Checklist


  • Closes #xxx

  • Tests added/passed

  • Documentation updated

  • - If checked, please file a pull request on our docs repo and link it here: #xxx
  • Schema updated (if necessary)
  • Diff: 22 lines (+8 / -14) across 1 files Reviewer: DHowett Review duration: 52m
    All Vouch review confidence checks passed
    Residual risk 0.04 = Change Risk (0.22) × (1 − Review Confidence (0.82)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.22 · 22 lines diff across 1 files
    0.22
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.71 · 3 substantive comment(s)
    0.71
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    82%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.188
    Real PR Conversation Timeline
    5 items
    DHowett DHowett requested changes on Oct 20, 2026 13:52 UTC
    Changes Requested Reviewer

    but, why? The SysNative alias does not exist on 32-bit windows where WoW is not present, so this would meaningfully regress support for x86 builds of Windows.

    As a reminder, the code that builds out of this repository runs in part down to Windows 8.1; Microsoft only deprecated 32-bit kernels for Windows 11 and beyond.

    DHowett DHowett commented on Oct 20, 2026 13:53 UTC
    Contributor

    (We do not operate under the same assumptions as many software projects with regards to Windows compatibility.)

    DHowett DHowett commented on Oct 20, 2026 13:57 UTC
    Contributor

    (I recognize that the BUILD_WOW6432 preprocessor define is not used on our repository... but also, if it was, that would require us to ship a different 32-bit DLL for 32 and 32-on-64, which we are not going to do!)

    YexuanXiao YexuanXiao commented on Oct 20, 2026 14:17 UTC
    Author

    but, why? The SysNative alias does not exist on 32-bit windows where WoW is not present, so this would meaningfully regress support for x86 builds of Windows.

    > As a reminder, the code that builds out of this repository runs in part down to Windows 8.1; Microsoft only deprecated 32-bit kernels for Windows 11 and beyond.

    Indeed, since it depends on WOW64, that alias isn't as useful as it claims.

    Reviewers
    Assignees
    YexuanXiao YexuanXiao
    Labels
    risk: low confidence: 82.1% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 21.8% (LOW) · Higher = larger blast radius
    21.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 82.1% · Lower = rushed or shallow review
    82.1%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 3.9% · Safe to merge
    3.9%