pe: load pe_run_package providers without a critical-error dialog #2829

Manually merged
github merged 4 commits from github-bot/gh-2829 into gh-pr/2829/base 2026-11-27 18:57:03 +00:00 AGit
Owner

@⁠alvaroolt on GitHub · 2026-11-26 12:31 UTC · original
alvaroolt:pe/run-package-quiet-provider-load → main · +122 −3 · 3 files · 4 commits · merged 2026-11-27 18:51 UTC

Change

tools/pe_run_package.py loads each external provider (--shim, --system) with LoadLibraryExW. When a provider is not a loadable image, the loader raises a critical error. The process had no SEM_FAILCRITICALERRORS, so in an interactive session Windows showed a modal "Bad Image" dialog (status 0xc0000020) and the load blocked until someone closed it.

pe_run_package_cli_check hits this on every local run: test_positive_preflight_in_process_and_subprocess passes an empty kernel32_shim.dll in --preflight-only mode. On this machine the ctest case blocked on the dialog and finished after 227 s.

The provider loads now add SEM_FAILCRITICALERRORS to the calling thread's error mode (SetThreadErrorMode) and restore the previous mode after each load, so the guest still runs with the host's setting. A provider that cannot be loaded keeps the current result: its symbols are reported as missing. Loading the mapper DLL in execution mode is unchanged.

docs/experiments.md gains one paragraph next to the --pin-shim description.

Verification

Base 8c9f168f (upstream main), commit ab08094d. Windows 11 build 26300.9974, MSVC 14.52, Python 3.12.10. No GPU is involved.

New test test_provider_load_has_no_critical_error_dialog. It wraps the LoadLibraryExW that the runner uses, records GetThreadErrorMode() at each provider load, and checks that the mode after the run equals the mode before it. It passes the system kernel32.dll as the --shim, so the test does not need a bad image to reach the load, and so it never shows the dialog.

Before the change (test only):

> python -B tests/pe_run_package_cli_check.py PeRunPackageCliTests.test_provider_load_has_no_critical_error_dialog
AssertionError: 0 is not true : LoadLibraryExW(C:\Windows\System32\kernel32.dll) ran with thread error mode 0x0
FAILED (failures=1)

Negative control: a mutant that sets the flag but does not restore the previous mode fails with AssertionError: 1 != 0 : the thread error mode was not restored after the run.

After the change:

> python -B tests/pe_run_package_cli_check.py
Ran 4 tests in 0.229s
OK
ctest --preset dev --no-tests=error -R 'pe_run_package|cpu_package|cpu_native_startup|cpu_process_image|trap_missing|static_exe_intake|conditional_import_paths|bundled_export_forwarders|xgameruntime_preflight|pe_package'

Result: 14/14 passed on the rebased commit. pe_run_package_cli_check took 0.36 s, against 227 s on the dialog before the change.

Full suites on the change before the rebase onto 8c9f168f (base 02075500):

  • ctest --preset dev --no-tests=error -j 8: 2415/2417 passed.
  • ctest --preset release --no-tests=error -j 8: 2415/2417 passed.
  • In both, the two failures are linear_buffer_backing_copy_hardware and compute_store_aot_lds_shared_hardware on an NVIDIA GeForce RTX 5080. Both also failed on upstream 700522ef without this change, and neither uses this tool.

The CI Run Python checks command passed every check. startup_run_sh_check.py returned 77 (capability skip), and that skip is why the runner exits 1. docs_links_check.py passes on the rebased commit.

Evidence and follow-up

No fixture or data file is added. The test writes only a temporary minimal PE32+ executable, as the existing tests in the file already do.

Assumptions:

  • The dialog's status comes from the 0-byte shim. Other unloadable images (truncated, not a PE) are expected to raise the same class of critical error, but only the empty file was observed.
  • Windows is not expected to show the dialog in a non-interactive session, which would explain why CI has not reported the block. This was not measured. The new test checks the error mode, not the dialog, so it does not depend on the session type.

This change was AI-assisted (Claude Code); I reviewed the diff and the test results.

Checklist

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture.
  • I updated README/docs when a capability or build requirement changed.
  • I did not include game files, dumps, distribution links or secrets.
**@⁠alvaroolt** on GitHub · 2026-11-26 12:31 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2829) `alvaroolt:pe/run-package-quiet-provider-load` → `main` · +122 −3 · 3 files · 4 commits · merged 2026-11-27 18:51 UTC ## Change `tools/pe_run_package.py` loads each external provider (`--shim`, `--system`) with `LoadLibraryExW`. When a provider is not a loadable image, the loader raises a critical error. The process had no `SEM_FAILCRITICALERRORS`, so in an interactive session Windows showed a modal "Bad Image" dialog (status `0xc0000020`) and the load blocked until someone closed it. `pe_run_package_cli_check` hits this on every local run: `test_positive_preflight_in_process_and_subprocess` passes an empty `kernel32_shim.dll` in `--preflight-only` mode. On this machine the ctest case blocked on the dialog and finished after 227 s. The provider loads now add `SEM_FAILCRITICALERRORS` to the calling thread's error mode (`SetThreadErrorMode`) and restore the previous mode after each load, so the guest still runs with the host's setting. A provider that cannot be loaded keeps the current result: its symbols are reported as missing. Loading the mapper DLL in execution mode is unchanged. `docs/experiments.md` gains one paragraph next to the `--pin-shim` description. ## Verification Base `8c9f168f` (upstream `main`), commit `ab08094d`. Windows 11 build 26300.9974, MSVC 14.52, Python 3.12.10. No GPU is involved. New test `test_provider_load_has_no_critical_error_dialog`. It wraps the `LoadLibraryExW` that the runner uses, records `GetThreadErrorMode()` at each provider load, and checks that the mode after the run equals the mode before it. It passes the system `kernel32.dll` as the `--shim`, so the test does not need a bad image to reach the load, and so it never shows the dialog. Before the change (test only): ```text > python -B tests/pe_run_package_cli_check.py PeRunPackageCliTests.test_provider_load_has_no_critical_error_dialog AssertionError: 0 is not true : LoadLibraryExW(C:\Windows\System32\kernel32.dll) ran with thread error mode 0x0 FAILED (failures=1) ``` Negative control: a mutant that sets the flag but does not restore the previous mode fails with `AssertionError: 1 != 0 : the thread error mode was not restored after the run`. After the change: ```text > python -B tests/pe_run_package_cli_check.py Ran 4 tests in 0.229s OK ``` ```powershell ctest --preset dev --no-tests=error -R 'pe_run_package|cpu_package|cpu_native_startup|cpu_process_image|trap_missing|static_exe_intake|conditional_import_paths|bundled_export_forwarders|xgameruntime_preflight|pe_package' ``` Result: 14/14 passed on the rebased commit. `pe_run_package_cli_check` took 0.36 s, against 227 s on the dialog before the change. Full suites on the change before the rebase onto `8c9f168f` (base `02075500`): - `ctest --preset dev --no-tests=error -j 8`: 2415/2417 passed. - `ctest --preset release --no-tests=error -j 8`: 2415/2417 passed. - In both, the two failures are `linear_buffer_backing_copy_hardware` and `compute_store_aot_lds_shared_hardware` on an NVIDIA GeForce RTX 5080. Both also failed on upstream `700522ef` without this change, and neither uses this tool. The CI `Run Python checks` command passed every check. `startup_run_sh_check.py` returned 77 (capability skip), and that skip is why the runner exits 1. `docs_links_check.py` passes on the rebased commit. ## Evidence and follow-up No fixture or data file is added. The test writes only a temporary minimal PE32+ executable, as the existing tests in the file already do. Assumptions: - The dialog's status comes from the 0-byte shim. Other unloadable images (truncated, not a PE) are expected to raise the same class of critical error, but only the empty file was observed. - Windows is not expected to show the dialog in a non-interactive session, which would explain why CI has not reported the block. This was not measured. The new test checks the error mode, not the dialog, so it does not depend on the session type. This change was AI-assisted (Claude Code); I reviewed the diff and the test results. ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [x] I considered a negative control or failure case for a new fixture. - [x] I updated README/docs when a capability or build requirement changed. - [x] I did not include game files, dumps, distribution links or secrets.
pe_run_package loads each external provider (--shim, --system) with
LoadLibraryExW. When a provider is not a loadable image, for example the
empty kernel32_shim.dll that pe_run_package_cli_check passes in
--preflight-only mode, the loader raises a critical error. The process
had no SEM_FAILCRITICALERRORS, so in an interactive session Windows
showed a modal "Bad Image" dialog (status 0xc0000020) and the load, and
the ctest case, blocked until someone closed it.

The provider loads now run with SEM_FAILCRITICALERRORS added to the
calling thread's error mode, and the previous mode is restored after each
load, so the guest still runs with the host's setting. A provider that
cannot be loaded keeps the existing result: its symbols are reported as
missing. Loading the mapper DLL in execution mode is unchanged.

pe_run_package_cli_check records the thread error mode at each provider
LoadLibraryExW and checks that the run leaves the mode as it found it.
test_provider_load_has_no_critical_error_dialog compared the thread
error mode before and after the run. On a host whose thread already has
SEM_FAILCRITICALERRORS set, both values are the same whether or not the
runner restores the mode, so the restore assertion guarded nothing there
(review of #2829).

The test now sets the thread error mode to 0 before recording it, checks
that it starts at 0, and puts the original mode back in a finally block.
A runner that does not restore the mode now fails the check whatever mode
the host started with.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 01:25:38 +00:00
Author
Owner

@⁠tedin7 on GitHub · 2026-11-26 12:37 UTC · original · reviewed

Review of head ab08094d (comment only, not an approval).

What is good

  • quiet_loader sets SEM_FAILCRITICALERRORS for the provider LoadLibraryExW call only. The call sites changed to the 2-argument form consistently (tools/pe_run_package.py around lines 192-193). Mapper loading is untouched.
  • The test records the thread error mode inside each LoadLibraryExW call, so it checks the real Windows state and not a string.

One gap in the test (please fix before merge)

  • Mutation 1: drop the flag (set_mode(get_mode(), ...) instead of get_mode() | SEM_FAILCRITICALERRORS). tests/pe_run_package_cli_check.py FAILS (rc=1). Good.
  • Mutation 2: skip the restore (set_mode(previous.value, None) replaced by pass). The test still PASSES (rc=0). So the "mode is restored after the run" assertion at tests/pe_run_package_cli_check.py:149 guards nothing on the Win2025 runner. Most likely the thread already has the flag set before the run, so before == after either way.
  • Suggested fix: in the test, call SetThreadErrorMode(0, ...) first, record before, and restore the original mode in a finally. Then the restore check can fail.

Commands run locally

  • python3 -m py_compile tools/pe_run_package.py tests/pe_run_package_cli_check.py: ok
  • python3 tests/docs_links_check.py: ok; python3 tests/bidi_controls_check.py: ok; git diff --check origin/main...HEAD: ok
  • x2w_pipe.py win2025 2829 --py-checks tests/pe_run_package_cli_check.py (dev + release): PYCHECK name=tests/pe_run_package_cli_check.py rc=0
  • Same command with --wt and mutation 1: rc=1. With mutation 2: rc=0.
  • Real-GPU run not available (RunPod stopped); not relevant to this change.

AI-assisted; commands listed were executed locally.

**@⁠tedin7** on GitHub · 2026-11-26 12:37 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2829#pullrequestreview-6074236363) · **reviewed** Review of head ab08094d (comment only, not an approval). What is good - `quiet_loader` sets `SEM_FAILCRITICALERRORS` for the provider `LoadLibraryExW` call only. The call sites changed to the 2-argument form consistently (`tools/pe_run_package.py` around lines 192-193). Mapper loading is untouched. - The test records the thread error mode inside each `LoadLibraryExW` call, so it checks the real Windows state and not a string. One gap in the test (please fix before merge) - Mutation 1: drop the flag (`set_mode(get_mode(), ...)` instead of `get_mode() | SEM_FAILCRITICALERRORS`). `tests/pe_run_package_cli_check.py` FAILS (rc=1). Good. - Mutation 2: skip the restore (`set_mode(previous.value, None)` replaced by `pass`). The test still PASSES (rc=0). So the "mode is restored after the run" assertion at `tests/pe_run_package_cli_check.py:149` guards nothing on the Win2025 runner. Most likely the thread already has the flag set before the run, so `before == after` either way. - Suggested fix: in the test, call `SetThreadErrorMode(0, ...)` first, record `before`, and restore the original mode in a `finally`. Then the restore check can fail. Commands run locally - `python3 -m py_compile tools/pe_run_package.py tests/pe_run_package_cli_check.py`: ok - `python3 tests/docs_links_check.py`: ok; `python3 tests/bidi_controls_check.py`: ok; `git diff --check origin/main...HEAD`: ok - `x2w_pipe.py win2025 2829 --py-checks tests/pe_run_package_cli_check.py` (dev + release): `PYCHECK name=tests/pe_run_package_cli_check.py rc=0` - Same command with `--wt` and mutation 1: rc=1. With mutation 2: rc=0. - Real-GPU run not available (RunPod stopped); not relevant to this change. AI-assisted; commands listed were executed locally.
Author
Owner

@⁠alvaroolt on GitHub · 2026-11-26 12:48 UTC · original

Thanks, @⁠tedin7. Agreed: the restore assertion was vacuous on a thread that already has SEM_FAILCRITICALERRORS. I reproduced it locally by setting the flag on the thread before running the test: with the no-restore mutant the test passed.

Fixed in 3468adbb as you suggested. The test now sets the thread error mode to 0 before recording before, asserts that it starts at 0, and restores the original mode in a finally. tools/pe_run_package.py is unchanged.

Results on 3468adbb. Each case ran with the thread starting at mode 0 and again with SEM_FAILCRITICALERRORS already set:

Runner variant Thread starts at 0 Thread starts with the flag
This PR OK OK
Mutation 1 (flag not added) FAILED FAILED
Mutation 2 (mode not restored) FAILED FAILED (1 != 0 : the thread error mode was not restored after the run)

After the test, the thread is back at the mode it started with (1 in the second column).

ctest --preset dev --no-tests=error -R '^pe_run_package' -V      # 4/4 passed
ctest --preset release --no-tests=error -R '^pe_run_package'     # 4/4 passed
python -B tests/bidi_controls_check.py                           # ok
git diff --check                                                 # clean

AI-assisted (Claude Code); the commands above were run locally on Windows 11 build 26300.9974.

**@⁠alvaroolt** on GitHub · 2026-11-26 12:48 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2829#issuecomment-7192495128) Thanks, @⁠tedin7. Agreed: the restore assertion was vacuous on a thread that already has `SEM_FAILCRITICALERRORS`. I reproduced it locally by setting the flag on the thread before running the test: with the no-restore mutant the test passed. Fixed in `3468adbb` as you suggested. The test now sets the thread error mode to 0 before recording `before`, asserts that it starts at 0, and restores the original mode in a `finally`. `tools/pe_run_package.py` is unchanged. Results on `3468adbb`. Each case ran with the thread starting at mode 0 and again with `SEM_FAILCRITICALERRORS` already set: | Runner variant | Thread starts at 0 | Thread starts with the flag | |---|---|---| | This PR | OK | OK | | Mutation 1 (flag not added) | FAILED | FAILED | | Mutation 2 (mode not restored) | FAILED | FAILED (`1 != 0 : the thread error mode was not restored after the run`) | After the test, the thread is back at the mode it started with (1 in the second column). ```powershell ctest --preset dev --no-tests=error -R '^pe_run_package' -V # 4/4 passed ctest --preset release --no-tests=error -R '^pe_run_package' # 4/4 passed python -B tests/bidi_controls_check.py # ok git diff --check # clean ``` AI-assisted (Claude Code); the commands above were run locally on Windows 11 build 26300.9974.
Author
Owner

@⁠tedin7 on GitHub · 2026-11-27 18:12 UTC · original · reviewed

Review of 3398fd0cc1 (the change from 3468adbb, updated with main; the PR's own diff is unchanged). Comment only.

quiet_loader sets SEM_FAILCRITICALERRORS around the provider LoadLibraryExW call only and restores the previous thread mode in finally, only when the set succeeded. Both call sites use the new two-argument form. The test now starts the run with thread mode 0, so the restore check fails if the runner forgets to restore the mode; that answers the earlier point about the restore assertion being vacuous.

Windows results are in the comment below.

Commands: git diff origin/main...pull/2829/head (read), plus the Windows commands listed in the comment.

AI-assisted; commands listed were executed locally.

**@⁠tedin7** on GitHub · 2026-11-27 18:12 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2829#pullrequestreview-6091954679) · **reviewed** Review of 3398fd0cc159f36dbe910a70ccc550bf8e50f45a (the change from 3468adbb, updated with main; the PR's own diff is unchanged). Comment only. `quiet_loader` sets `SEM_FAILCRITICALERRORS` around the provider `LoadLibraryExW` call only and restores the previous thread mode in `finally`, only when the set succeeded. Both call sites use the new two-argument form. The test now starts the run with thread mode 0, so the restore check fails if the runner forgets to restore the mode; that answers the earlier point about the restore assertion being vacuous. Windows results are in the comment below. Commands: `git diff origin/main...pull/2829/head` (read), plus the Windows commands listed in the comment. AI-assisted; commands listed were executed locally.
Author
Owner

@⁠tedin7 on GitHub · 2026-11-27 18:12 UTC · original

Windows Server 2025 verification of 3398fd0cc159f36dbe910a70ccc550bf8e50f45a (MSVC 14.44.35207):

  • dev: cmake --build --preset dev --target trap_missing_data_exe trap_missing_exe; ctest --preset dev -R '^pe_': 19/19 passed, including pe_run_package_cli_check
  • Windows Python checks: tests/host_commit_check.py ok, tests/intake/import_forms_check.py ok, tests/pe_package_ordinal_plan_check.py ok, tests/pe_package_preflight_check.py ok
  • The PR changes only Python and Markdown, so the release (/O2) build equals main and was not rerun.

AI-assisted; commands listed were executed locally.

**@⁠tedin7** on GitHub · 2026-11-27 18:12 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2829#issuecomment-7225239643) Windows Server 2025 verification of `3398fd0cc159f36dbe910a70ccc550bf8e50f45a` (MSVC 14.44.35207): - dev: `cmake --build --preset dev --target trap_missing_data_exe trap_missing_exe`; `ctest --preset dev -R '^pe_'`: 19/19 passed, including `pe_run_package_cli_check` - Windows Python checks: `tests/host_commit_check.py` ok, `tests/intake/import_forms_check.py` ok, `tests/pe_package_ordinal_plan_check.py` ok, `tests/pe_package_preflight_check.py` ok - The PR changes only Python and Markdown, so the release (/O2) build equals main and was not rerun. AI-assisted; commands listed were executed locally.
Author
Owner

@⁠tedin7 on GitHub · 2026-11-27 18:47 UTC · original

Windows Server 2025 re-verification of c9ff2e8f1f61098d8b914a0199f78e2db7fef0d6 (the same change, updated with main again; MSVC 14.44.35207):

  • dev: cmake --build --preset dev --target trap_missing_data_exe trap_missing_exe; ctest --preset dev -R '^pe_': 18/18 passed, including pe_run_package_cli_check
  • Windows Python checks: tests/host_commit_check.py ok, tests/intake/import_forms_check.py ok, tests/pe_package_ordinal_plan_check.py ok, tests/pe_package_preflight_check.py ok
  • The PR changes only Python and Markdown, so the release (/O2) build equals main and was not rerun.

AI-assisted; commands listed were executed locally.

**@⁠tedin7** on GitHub · 2026-11-27 18:47 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2829#issuecomment-7225868486) Windows Server 2025 re-verification of `c9ff2e8f1f61098d8b914a0199f78e2db7fef0d6` (the same change, updated with main again; MSVC 14.44.35207): - dev: `cmake --build --preset dev --target trap_missing_data_exe trap_missing_exe`; `ctest --preset dev -R '^pe_'`: 18/18 passed, including `pe_run_package_cli_check` - Windows Python checks: `tests/host_commit_check.py` ok, `tests/intake/import_forms_check.py` ok, `tests/pe_package_ordinal_plan_check.py` ok, `tests/pe_package_preflight_check.py` ok - The PR changes only Python and Markdown, so the release (/O2) build equals main and was not rerun. AI-assisted; commands listed were executed locally.
github-bot changed target branch from main to gh-pr/2829/base 2026-11-27 18:57:01 +00:00
github manually merged commit c9ff2e8f1f into gh-pr/2829/base 2026-11-27 18:57:03 +00:00
Author
Owner

@⁠pigalot on GitHub · 2026-11-27 18:51 UTC · original · approved these changes

Independently reviewed c9ff2e8f integrated over main 7832b98b (tree bda46353, clean merge).

What I traced. quiet_loader ORs SEM_FAILCRITICALERRORS into the thread's error mode for each provider LoadLibraryExW call. It restores the previous mode in finally, and only if the set succeeded. Both provider call sites use the two-argument form, and the mapper load is untouched.

What I ran. I ran this in an interactive desktop session, the case the PR fixes; the Win2025 host and CI have no desktop.

  1. The test file. python -B tests/pe_run_package_cli_check.py passed 4/4 in all 3 runs, in 0.46–0.51 s wall time. That includes test_positive_preflight_in_process_and_subprocess, whose 0-byte --shim is the input that used to block.
  2. Other unloadable images. These go beyond the PR's one observed case. With an empty file, a text file, an MZ-only header and a PE cut in half, each passed as --shim kernel32.dll <image> to tools/pe_run_package.py <mapper> <pkg> app.exe --preflight-only in a subprocess:
    • each exits 0 in 0.10–0.11 s;
    • each reports missing=['app.exe: kernel32.dll!ExitProcess'];
    • none showed a dialog.
  3. The PE group. I built pe_map, trap_missing_exe and trap_missing_data_exe in dev and release, then ran ctest --test-dir out/build/<preset> --no-tests=error -j 4 --output-on-failure -R '^pe_': 19/19 in Debug and Release /O2, with no skips.

Mutant. I dropped the flag (set_mode(get_mode(), ...)). That fails test_provider_load_has_no_critical_error_dialog with LoadLibraryExW(C:\Windows\System32\kernel32.dll) ran with thread error mode 0x0. The no-restore mutant is covered by the test's mode-0 start, as shown in the earlier rounds.

I did not run main on purpose, because there the empty-shim case puts up a blocking modal dialog. git diff --check is clean.

Verdict: approve on c9ff2e8f.

Environment: Windows 11 25H2 build 26200.9974, interactive desktop session; MSVC 19.52.37029; Python 3.12.10.
CI: Build and test on Windows passes on c9ff2e8f. There are no review threads.

This reply was AI-assisted.

**@⁠pigalot** on GitHub · 2026-11-27 18:51 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2829#pullrequestreview-6092278241) · **approved these changes** Independently reviewed `c9ff2e8f` integrated over `main` `7832b98b` (tree `bda46353`, clean merge). **What I traced.** `quiet_loader` ORs `SEM_FAILCRITICALERRORS` into the thread's error mode for each provider `LoadLibraryExW` call. It restores the previous mode in `finally`, and only if the set succeeded. Both provider call sites use the two-argument form, and the mapper load is untouched. **What I ran.** I ran this in an interactive desktop session, the case the PR fixes; the Win2025 host and CI have no desktop. 1. **The test file.** `python -B tests/pe_run_package_cli_check.py` passed 4/4 in all 3 runs, in 0.46–0.51 s wall time. That includes `test_positive_preflight_in_process_and_subprocess`, whose 0-byte `--shim` is the input that used to block. 2. **Other unloadable images.** These go beyond the PR's one observed case. With an empty file, a text file, an `MZ`-only header and a PE cut in half, each passed as `--shim kernel32.dll <image>` to `tools/pe_run_package.py <mapper> <pkg> app.exe --preflight-only` in a subprocess: - each exits 0 in 0.10–0.11 s; - each reports `missing=['app.exe: kernel32.dll!ExitProcess']`; - none showed a dialog. 3. **The PE group.** I built `pe_map`, `trap_missing_exe` and `trap_missing_data_exe` in `dev` and `release`, then ran `ctest --test-dir out/build/<preset> --no-tests=error -j 4 --output-on-failure -R '^pe_'`: 19/19 in Debug and Release `/O2`, with no skips. **Mutant.** I dropped the flag (`set_mode(get_mode(), ...)`). That fails `test_provider_load_has_no_critical_error_dialog` with `LoadLibraryExW(C:\Windows\System32\kernel32.dll) ran with thread error mode 0x0`. The no-restore mutant is covered by the test's mode-0 start, as shown in the earlier rounds. I did not run `main` on purpose, because there the empty-shim case puts up a blocking modal dialog. `git diff --check` is clean. **Verdict:** approve on `c9ff2e8f`. Environment: Windows 11 25H2 build 26200.9974, interactive desktop session; MSVC 19.52.37029; Python 3.12.10. CI: `Build and test on Windows` passes on `c9ff2e8f`. There are no review threads. This reply was AI-assisted.
This discussion has been locked. Commenting is limited to contributors.
No description provided.