diff options
| author | HQasper <52220032+HQasper@users.noreply.github.com> | 2026-11-22 13:29:20 +0100 |
|---|---|---|
| committer | HQasper <52220032+HQasper@users.noreply.github.com> | 2026-11-22 13:29:20 +0100 |
| commit | c5fb25f734f51df7785b858e13e86dd6d0310f8d (patch) | |
| tree | b1620389fd1d46ac1002cae73c3684868fddfb61 /runtime/src/pe_loader.cpp | |
| parent | a98f9925b0c059548ce4359006238a29744cc773 (diff) | |
gta6rt: a failed write-open no longer revives a deleted GAME: name (RT-97)
write_target cleared the delete marker before the host CreateFileW ran, and copied a package file up
without looking at the marker, so a write-open of a deleted name could make it readable again: an
OPEN_EXISTING open succeeded on the copy-up, and one that failed left the marker gone with the package
file visible behind it.
The marker is now never removed, and a tombstoned name is never copied up. Reads and listings prefer an
overlay copy, so a re-created file is visible without clearing anything, while an open that keeps the
contents (OPEN_EXISTING, TRUNCATE_EXISTING) fails with ERROR_FILE_NOT_FOUND and leaves the name deleted.
file_system asserts that sequence: the failed write-open, no overlay copy, and the name still gone.
Review pass over the rest of the shim: Target loses the two fields nothing read, FindFirstFile no longer
parses its pattern twice, collect drops its unreachable non-console branch, and the enumeration states are
unique_ptr entries looked up under the lock instead of raw pointers handed out of it.
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions