HLE: share DirectStorage file opens and keep the host's error code #3016

Open
Halfect wants to merge 3 commits from upstream-pr/3018 into main
Halfect commented 2026-11-26 03:30:20 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Halfect on 2026-11-26T03:30:20Z.


Fixes VIC-BT-037 from #1249.

What

IDStorageFactoryX::OpenFile (open_file in crates/victory-hle/src/modules/dstorage.rs) asked for FILE_SHARE_READ alone. A file the title's own tools or a mod hold open for writing (sharing reads and writes, not deletes) then fails with ERROR_SHARING_VIOLATION, even though the emulator only reads it. The open now shares read, write and delete, the usual mode for a read-only consumer.

It also read std::io::Error::last_os_error() only after formatting the path into a String. The host keeps that code in thread-local storage, which a heap allocation may overwrite, so the failure could return (and log) the wrong error. The error is now captured immediately after the call, before anything allocates; the log keeps the path.

Testing

  • New open_file_shares_writes_and_deletes (Windows): a file held open for read+write with share read|write (no delete-share) still opens. On the previous code it fails the S_OK assertion with the sharing violation (verified as a negative control).
  • New open_file_reports_the_os_error: a missing path returns HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) (0x80070002).
  • cargo test --locked -p victory-hle: 154 passed, 0 failed.
  • cargo clippy --locked -p victory-hle --all-targets -- -D warnings: clean.
  • cargo xtask policy: 191 files ok. git diff --check: clean. cargo fmt --check shows only the same pre-existing diffs unmodified 63bcca4 shows.

Limitations

Windows-only behavior, verified on Windows; the change is inside the Windows-only module. Not run against a real title's DirectStorage workload. The error-capture reorder is not separately observable in a deterministic test (the clobbering is intermittent by nature); it is covered by review and the failure-path test.

No game data. AI-assisted (Kimi).

<!-- greyfinch-sync:Marvisak/VIctory:issue:6618880745 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3018). Originally posted by [Halfect](https://github.com/Halfect) on 2026-11-26T03:30:20Z. --- Fixes VIC-BT-037 from #1249. ## What `IDStorageFactoryX::OpenFile` (`open_file` in `crates/victory-hle/src/modules/dstorage.rs`) asked for `FILE_SHARE_READ` alone. A file the title's own tools or a mod hold open for writing (sharing reads and writes, not deletes) then fails with `ERROR_SHARING_VIOLATION`, even though the emulator only reads it. The open now shares read, write and delete, the usual mode for a read-only consumer. It also read `std::io::Error::last_os_error()` only after formatting the path into a `String`. The host keeps that code in thread-local storage, which a heap allocation may overwrite, so the failure could return (and log) the wrong error. The error is now captured immediately after the call, before anything allocates; the log keeps the path. ## Testing - New `open_file_shares_writes_and_deletes` (Windows): a file held open for read+write with share read|write (no delete-share) still opens. On the previous code it fails the `S_OK` assertion with the sharing violation (verified as a negative control). - New `open_file_reports_the_os_error`: a missing path returns `HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND)` (`0x80070002`). - `cargo test --locked -p victory-hle`: 154 passed, 0 failed. - `cargo clippy --locked -p victory-hle --all-targets -- -D warnings`: clean. - `cargo xtask policy`: 191 files ok. `git diff --check`: clean. `cargo fmt --check` shows only the same pre-existing diffs unmodified `63bcca4` shows. ## Limitations Windows-only behavior, verified on Windows; the change is inside the Windows-only module. Not run against a real title's DirectStorage workload. The error-capture reorder is not separately observable in a deterministic test (the clobbering is intermittent by nature); it is covered by review and the failure-path test. No game data. AI-assisted (Kimi).
fuzeofficlal commented 2026-11-26 04:06:05 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T03:43:37Z.

Review: CHANGES_REQUESTED


Code review on 39297b84 (static source inspection; no runtime Windows tests executed):

  • P2 — open_file_shares_writes_and_deletes calls Release through a mismatched function signature (crates/victory-hle/src/modules/dstorage.rs:1282):
    • void(file, 0x10) invokes vtable slot 0x10 (release::<File>, which returns u32) via extern "system" fn(*mut c_void) returning (). Calling through a transmuted function pointer with a mismatched return type is Rust UB even if the x64 caller ignores eax; suggest invoking it with a -> u32 signature and asserting the returned refcount is 0.
  • P2 — Translated virtual-drive opens can still clobber GetLastError before open_file reads it (crates/victory-hle/src/modules/dstorage.rs:129-148, crates/victory-hle/src/modules/files.rs:188-207, 263-282):
    • files::CreateFileW owns a Wide translation buffer that is dropped before files::CreateFileW returns, so any heap deallocation during drop runs before dstorage::open_file reads std::io::Error::last_os_error(). Capturing or preserving the Win32 error inside files::CreateFileW across the Wide drop (and testing a missing file on a mounted drive) ensures translated paths never lose the host error code.
  • The FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE share mode change itself looks good.
<!-- greyfinch-sync:Marvisak/VIctory:review:6068259157 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3018#pullrequestreview-6068259157). Originally posted by [fuzeofficlal](https://github.com/fuzeofficlal) on 2026-11-26T03:43:37Z. **Review:** CHANGES_REQUESTED --- Code review on `39297b84` (static source inspection; no runtime Windows tests executed): - **P2 — `open_file_shares_writes_and_deletes` calls `Release` through a mismatched function signature (`crates/victory-hle/src/modules/dstorage.rs:1282`)**: - `void(file, 0x10)` invokes vtable slot `0x10` (`release::<File>`, which returns `u32`) via `extern "system" fn(*mut c_void)` returning `()`. Calling through a transmuted function pointer with a mismatched return type is Rust UB even if the x64 caller ignores `eax`; suggest invoking it with a `-> u32` signature and asserting the returned refcount is `0`. - **P2 — Translated virtual-drive opens can still clobber `GetLastError` before `open_file` reads it (`crates/victory-hle/src/modules/dstorage.rs:129-148`, `crates/victory-hle/src/modules/files.rs:188-207, 263-282`)**: - `files::CreateFileW` owns a `Wide` translation buffer that is dropped before `files::CreateFileW` returns, so any heap deallocation during drop runs before `dstorage::open_file` reads `std::io::Error::last_os_error()`. Capturing or preserving the Win32 error inside `files::CreateFileW` across the `Wide` drop (and testing a missing file on a mounted drive) ensures translated paths never lose the host error code. - The `FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE` share mode change itself looks good.
kotekompotek commented 2026-11-26 05:03:52 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by kotekompotek on 2026-11-26T04:38:30Z.

Review: APPROVED


LGTM — sharing WRITE|DELETE matches the title's real usage (its own tools hold files open); capturing last_os_error before the UTF-16 alloc is the right order since heap alloc can clobber TLS. The share_mode(3) test discriminates the fix.

<!-- greyfinch-sync:Marvisak/VIctory:review:6068621830 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3018#pullrequestreview-6068621830). Originally posted by [kotekompotek](https://github.com/kotekompotek) on 2026-11-26T04:38:30Z. **Review:** APPROVED --- LGTM — sharing WRITE|DELETE matches the title's real usage (its own tools hold files open); capturing last_os_error before the UTF-16 alloc is the right order since heap alloc can clobber TLS. The share_mode(3) test discriminates the fix.
futurepro62 commented 2026-11-26 05:04:06 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by futurepro62 on 2026-11-26T04:22:07Z.


Full-suite run on NVIDIA, since this PR has no test report yet. Tested exact head 39297b8 (on its base 63bcca4).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.98.1 MSVC (pinned), dxil.dll from Windows SDK 10.0.26100 (the loader's default), debug.
  • cargo build --workspace --locked, then cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --skip emit::memory_tests::heap_direct_texture_reads_mark_their_heap_index --skip descriptor::host::tests::dynamic_slots_are_held_until_released --skip memory::tests::lists_share_a_table_and_copies_keep_their_views --skip emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride --skip emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros --skip emit::synthetic_tests::gathers_at_a_level_match_the_hardware: 868 passed, 0 failed, 10 ignored.
  • The new tests ran and passed: open_file_shares_writes_and_deletes, open_file_reports_the_os_error.
  • --skip leaves out tests that fail on main 63bcca4 on this card too, not because of this PR: heap_direct_texture_reads_mark_their_heap_index ends the victory-shader test process with 0xc0000005 (#2571), so without the skip the rest of that crate never reports; dynamic_slots_are_held_until_released, lists_share_a_table_and_copies_keep_their_views and the two stride_tests hit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317); gathers_at_a_level_match_the_hardware fails on lane 0 (#1744).

Not tested

  • AMD (the tests take the default adapter), a release build, the title (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
<!-- greyfinch-sync:Marvisak/VIctory:comment:7182533292 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3018#issuecomment-7182533292). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-26T04:22:07Z. --- Full-suite run on NVIDIA, since this PR has no test report yet. Tested exact head `39297b8` (on its base `63bcca4`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.98.1 MSVC (pinned), `dxil.dll` from Windows SDK 10.0.26100 (the loader's default), debug. - `cargo build --workspace --locked`, then `cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --skip emit::memory_tests::heap_direct_texture_reads_mark_their_heap_index --skip descriptor::host::tests::dynamic_slots_are_held_until_released --skip memory::tests::lists_share_a_table_and_copies_keep_their_views --skip emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride --skip emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros --skip emit::synthetic_tests::gathers_at_a_level_match_the_hardware`: **868 passed, 0 failed, 10 ignored**. - The new tests ran and passed: `open_file_shares_writes_and_deletes`, `open_file_reports_the_os_error`. - `--skip` leaves out tests that fail on main `63bcca4` on this card too, not because of this PR: `heap_direct_texture_reads_mark_their_heap_index` ends the `victory-shader` test process with `0xc0000005` (#2571), so without the skip the rest of that crate never reports; `dynamic_slots_are_held_until_released`, `lists_share_a_table_and_copies_keep_their_views` and the two `stride_tests` hit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317); `gathers_at_a_level_match_the_hardware` fails on lane 0 (#1744). **Not tested** - AMD (the tests take the default adapter), a release build, the title (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
Halfect commented 2026-11-26 05:04:13 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Halfect on 2026-11-26T04:32:04Z.


Thanks @futurepro62 for the full-suite run on the RTX 5070 Ti — 868 passed / 0 failed on the exact head 39297b8, with both new tests (open_file_shares_writes_and_deletes, open_file_reports_the_os_error) passing and the skips accounted for by pre-existing main-side issues (#2571, #1835/#2317, #1744), is exactly the coverage this change needed. Nothing further from my side; ready for review.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7182678493 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3018#issuecomment-7182678493). Originally posted by [Halfect](https://github.com/Halfect) on 2026-11-26T04:32:04Z. --- Thanks @futurepro62 for the full-suite run on the RTX 5070 Ti — 868 passed / 0 failed on the exact head `39297b8`, with both new tests (`open_file_shares_writes_and_deletes`, `open_file_reports_the_os_error`) passing and the skips accounted for by pre-existing main-side issues (#2571, #1835/#2317, #1744), is exactly the coverage this change needed. Nothing further from my side; ready for review.
Marvisak commented 2026-11-26 07:01:44 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-26T06:16:03Z.


Automated triage for the maintainers.

Still a merge candidate. The new commit f8a7c3c does two things:

  • The dstorage test now calls Release with its real signature and checks that it returns 0.
  • files::CreateFileW saves GetLastError right after the host call, drops the translated path, and restores the error with SetLastError. A new test, open_file_preserves_the_os_error_on_virtual_drives, checks that ERROR_FILE_NOT_FOUND survives on a mounted drive.

The save-and-restore is harmless but mostly defensive. Freeing the path buffer normally doesn't change the last error, so the new test would likely pass on main too. No other wrapper in files.rs does this, which the maintainer may want to keep consistent or drop.

The point from before still stands: open_file_shares_writes_and_deletes doesn't actually test delete-sharing.

CI: passing.

Recommending a look, not approving.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7184259421 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3018#issuecomment-7184259421). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-26T06:16:03Z. --- <!-- victory-triage v1 head=f8a7c3c56a8529b83786c08b18a69db7ec33ae35 verdict=merge-candidate at=2026-11-26T07:20:01Z --> Automated triage for the maintainers. **Still a merge candidate.** The new commit `f8a7c3c` does two things: - The dstorage test now calls `Release` with its real signature and checks that it returns 0. - `files::CreateFileW` saves `GetLastError` right after the host call, drops the translated path, and restores the error with `SetLastError`. A new test, `open_file_preserves_the_os_error_on_virtual_drives`, checks that `ERROR_FILE_NOT_FOUND` survives on a mounted drive. The save-and-restore is harmless but mostly defensive. Freeing the path buffer normally doesn't change the last error, so the new test would likely pass on `main` too. No other wrapper in `files.rs` does this, which the maintainer may want to keep consistent or drop. The point from before still stands: `open_file_shares_writes_and_deletes` doesn't actually test delete-sharing. CI: passing. Recommending a look, not approving. --- _Generated by [Claude Code](https://claude.ai/code)_
Dukestar69 commented 2026-11-26 08:02:58 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Dukestar69 on 2026-11-26T07:30:47Z.

Review: APPROVED


Tested locally merged onto origin/main (63bcca4) on Windows 11 x64:

  • cargo test -p victory-hle dstorage: all tests passed.
  • cargo clippy -p victory-hle --all-targets -- -D warnings: clean.
  • cargo xtask policy: 191 files ok.

Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).

<!-- greyfinch-sync:Marvisak/VIctory:review:6070064233 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3018#pullrequestreview-6070064233). Originally posted by [Dukestar69](https://github.com/Dukestar69) on 2026-11-26T07:30:47Z. **Review:** APPROVED --- Tested locally merged onto `origin/main` (`63bcca4`) on Windows 11 x64: - `cargo test -p victory-hle dstorage`: all tests passed. - `cargo clippy -p victory-hle --all-targets -- -D warnings`: clean. - `cargo xtask policy`: 191 files ok. Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
Halfect commented 2026-11-26 08:03:11 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Halfect on 2026-11-26T07:03:52Z.


@fuzeofficlal Thanks for the careful review. Both points are addressed in f8a7c3c:

  • open_file_shares_writes_and_deletes now uses the correct extern "system" fn(*mut c_void) -> u32 signature for Release and asserts that the returned reference count is 0.
  • files::CreateFileW now captures GetLastError immediately after the host call, explicitly drops the translated path buffer, and restores the saved value with SetLastError before returning. This applies to both success and failure. Added open_file_preserves_the_os_error_on_virtual_drives, which opens a missing file through a mounted virtual drive and verifies ERROR_FILE_NOT_FOUND survives.

Validation completed locally on Windows:

  • cargo test --locked -p victory-hle open_file -- --nocapture: 3 passed.
  • cargo test --locked -p victory-hle: 155 unit tests and 2 integration tests passed.
  • cargo clippy --locked -p victory-hle --all-targets -- -D warnings: passed.
  • cargo xtask policy: passed, 191 files checked.
  • git diff --check: passed.

Could you please take another look?

<!-- greyfinch-sync:Marvisak/VIctory:comment:7185058016 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3018#issuecomment-7185058016). Originally posted by [Halfect](https://github.com/Halfect) on 2026-11-26T07:03:52Z. --- @fuzeofficlal Thanks for the careful review. Both points are addressed in `f8a7c3c`: - `open_file_shares_writes_and_deletes` now uses the correct `extern "system" fn(*mut c_void) -> u32` signature for `Release` and asserts that the returned reference count is `0`. - `files::CreateFileW` now captures `GetLastError` immediately after the host call, explicitly drops the translated path buffer, and restores the saved value with `SetLastError` before returning. This applies to both success and failure. Added `open_file_preserves_the_os_error_on_virtual_drives`, which opens a missing file through a mounted virtual drive and verifies `ERROR_FILE_NOT_FOUND` survives. Validation completed locally on Windows: - `cargo test --locked -p victory-hle open_file -- --nocapture`: **3 passed**. - `cargo test --locked -p victory-hle`: **155 unit tests and 2 integration tests passed**. - `cargo clippy --locked -p victory-hle --all-targets -- -D warnings`: passed. - `cargo xtask policy`: passed, 191 files checked. - `git diff --check`: passed. Could you please take another look?
fuzeofficlal commented 2026-11-26 12:05:34 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T11:39:28Z.

Review: APPROVED


Reviewed 79b44e0a (git merge-tree against main 63bcca43 is clean):

  • DirectStorage file opens (crates/victory-hle/src/modules/dstorage.rs:117-137) still request GENERIC_READ + OPEN_EXISTING, while widening sharing to FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE so compatible writers and delete-access handles can coexist.
  • Both GetLastError captures are ordered ahead of Wide drop / diagnostic string allocation (files.rs:264-291 preserves GetLastError across drop(wide) on both error and success paths such as ERROR_ALREADY_EXISTS; dstorage.rs:138-154 captures Error::last_os_error() before String::from_utf16_lossy / logging).

Verified locally on Windows 11 (Rust 1.98.1 MSVC):

  • xtask policy (191 files ok) and cargo clippy -p victory-hle --all-targets -- -D warnings (default and --all-features): clean.
  • cargo test -p victory-hle --locked: full suite 157/157 passed (including dstorage::tests 18/18, files::tests 7/7, and the new open_file share/error tests 3/3).

Non-blocking note for a follow-up: the virtual-drive CreateFileA branch (files.rs:303-314) and CreateFile2 (files.rs:337-345) still drop their Wide conversion buffers after calling into the host API without saving/restoring GetLastError.

<!-- greyfinch-sync:Marvisak/VIctory:review:6073507280 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3018#pullrequestreview-6073507280). Originally posted by [fuzeofficlal](https://github.com/fuzeofficlal) on 2026-11-26T11:39:28Z. **Review:** APPROVED --- Reviewed `79b44e0a` (`git merge-tree` against `main` `63bcca43` is clean): - DirectStorage file opens (`crates/victory-hle/src/modules/dstorage.rs:117-137`) still request `GENERIC_READ` + `OPEN_EXISTING`, while widening sharing to `FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE` so compatible writers and delete-access handles can coexist. - Both `GetLastError` captures are ordered ahead of `Wide` drop / diagnostic string allocation (`files.rs:264-291` preserves `GetLastError` across `drop(wide)` on both error and success paths such as `ERROR_ALREADY_EXISTS`; `dstorage.rs:138-154` captures `Error::last_os_error()` before `String::from_utf16_lossy` / logging). Verified locally on Windows 11 (Rust 1.98.1 MSVC): - `xtask policy` (`191 files ok`) and `cargo clippy -p victory-hle --all-targets -- -D warnings` (default and `--all-features`): clean. - `cargo test -p victory-hle --locked`: full suite 157/157 passed (including `dstorage::tests` 18/18, `files::tests` 7/7, and the new `open_file` share/error tests 3/3). Non-blocking note for a follow-up: the virtual-drive `CreateFileA` branch (`files.rs:303-314`) and `CreateFile2` (`files.rs:337-345`) still drop their `Wide` conversion buffers after calling into the host API without saving/restoring `GetLastError`.
Halfect commented 2026-11-26 12:05:54 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Halfect on 2026-11-26T11:09:23Z.


The delete-sharing point was real — the test opened the file beside a writer but never checked the delete half of the share mode. Fixed in 79b44e0.

  • open_file_shares_writes_and_deletes now opens the file with DELETE access (share mode 0x7) beside the title's handle; that open only succeeds because open_file passes FILE_SHARE_DELETE. A negative control against held (which shares reads/writes but no deletes) must fail with ERROR_SHARING_VIOLATION first, so the check demonstrably has teeth.
  • Mutation-verified: dropping FILE_SHARE_DELETE from open_file makes the new assertion fail with exactly that sharing violation (OS error 32); with the flag restored it passes.

Validation on 79b44e0 (Windows, CPU-only):

  • cargo test --locked -p victory-hle open_file: 3 passed, 0 failed.
  • cargo test --locked -p victory-hle: 155 unit tests and all integration suites passed.
  • cargo clippy --locked -p victory-hle --all-targets -- -D warnings: passed.
  • cargo xtask policy: passed, 191 files checked.
  • git diff --check: passed.
<!-- greyfinch-sync:Marvisak/VIctory:comment:7190347078 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3018#issuecomment-7190347078). Originally posted by [Halfect](https://github.com/Halfect) on 2026-11-26T11:09:23Z. --- The delete-sharing point was real — the test opened the file beside a writer but never checked the delete half of the share mode. Fixed in `79b44e0`. - `open_file_shares_writes_and_deletes` now opens the file with `DELETE` access (share mode `0x7`) beside the title's handle; that open only succeeds because `open_file` passes `FILE_SHARE_DELETE`. A negative control against `held` (which shares reads/writes but no deletes) must fail with `ERROR_SHARING_VIOLATION` first, so the check demonstrably has teeth. - Mutation-verified: dropping `FILE_SHARE_DELETE` from `open_file` makes the new assertion fail with exactly that sharing violation (OS error 32); with the flag restored it passes. Validation on `79b44e0` (Windows, CPU-only): - `cargo test --locked -p victory-hle open_file`: **3 passed, 0 failed**. - `cargo test --locked -p victory-hle`: **155 unit tests and all integration suites passed**. - `cargo clippy --locked -p victory-hle --all-targets -- -D warnings`: passed. - `cargo xtask policy`: passed, 191 files checked. - `git diff --check`: passed.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3018:upstream-pr/3018'
git switch 'upstream-pr/3018'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/3018'
git switch 'upstream-pr/3018'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3018'
git switch 'upstream-pr/3018'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3018'
git switch 'main'
git merge --squash 'upstream-pr/3018'
git switch 'main'
git merge --ff-only 'upstream-pr/3018'
git switch 'main'
git merge 'upstream-pr/3018'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory!3016
No description provided.