Repository navigation
Conversation
LoadLibraryExW with LOAD_LIBRARY_AS_DATAFILE went to the host copy of a game file even when the VFS had a whiteout for it, and a console path with no source left a path error instead of ERROR_FILE_NOT_FOUND. load_as_data_in resolves through the VFS first: a visible file loads from its source (console path and host path alike), a whited-out one fails with ERROR_FILE_NOT_FOUND before the host fallback is reached. Measured: cargo test -p xcl --lib kernelx at this head: 37 passed, 0 failed, 1 ignored; the new test fails without the fix. Assisted-by: opencode (HY4 Flash Free; Sonnet)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
LoadLibraryExWwithLOAD_LIBRARY_AS_DATAFILEreached the host copy of a game file even when the VFS had a whiteout for it, and a console path with no source left a path error instead ofERROR_FILE_NOT_FOUND.What is in it
load_as_datadelegates to a newload_as_data_in(vfs, ...), which resolves through the VFS first: a visible file loads from its source (console path and host path alike); a whited-out file fails withERROR_FILE_NOT_FOUNDbefore the host fallback is reached.load_library_ex_as_data_respects_vfs_mount_and_whiteouts: a DLL in the game folder loads through both the console path and the host path; afterdelete_filewhites it out, both paths fail withERROR_FILE_NOT_FOUND.Tested
stable-x86_64-pc-windows-msvc; DXC 1.9.2609.5 throughXCL_DXC_DIR;CARGO_PROFILE_TEST_DEBUG=0.cargo test -p xcl --lib kernelxat the head: 37 passed, 0 failed, 1 ignored. The new test fails without the fix.cargo build --workspacethencargo test --workspace --no-fail-fast -- --test-threads=4): 876 passed, 0 failed, 38 ignored (20 test binaries;SKIPPED:pso_measurement_compiles_an_exact_synthetic_record— cannot disable the driver cache;heap_window_out_of_memory_falls_back_to_the_switch_form— no heap windows).title:line readsretail-title, the folder name is withheld):main (
85e3826, clean tree):head (
0c65342, clean tree):Not tested
AI use
Mirror of xcl-dev#1780 (auto-synced, do not edit).