upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/cpp_unwind_test.cpp
diff options
context:
space:
mode:
authorTyrannys <80750971+Tyrannys@users.noreply.github.com>2026-11-27 19:10:56 -0600
committerTyrannys <80750971+Tyrannys@users.noreply.github.com>2026-11-27 19:10:56 -0600
commit11b63a53b02c52e1bd17038c15b3ba69f9473f98 (patch)
tree57c534b426b0bb569b2780169ac3cfdfeeed330a /runtime/test/cpp_unwind_test.cpp
parent431ceba4f4a55c69c26fcf0e36fd83e86e1b9a32 (diff)
file_system: T:\ is a drive root for file calls; move and copy hold the folder lock
Three fixes to the GAME:/T: overlay shim: - The T:\ root parses to its scratch folder's parts, not to an empty list, so the parts.empty() root checks in write_target, DeleteFileW, the copy destination and SetFileAttributesW let it through: a SetFileAttributesW(T:\) reached the host folder. They use drive_root(), as RemoveDirectory and MoveFileEx already do, with the error each gave for GAME:\. - MoveFileEx and the CopyFile family did not hold the destination folder's lock from the "does the folder exist" check to the host move or copy, as a write-open and CreateDirectory do, so a concurrent RemoveDirectory of that folder could still be undone. A copy with a progress routine does not hold it across the copy, because the routine is the title's code. - CreateDirectory removed a recreated folder's marker without win32_io_path(), so a marker beyond MAX_PATH could not be removed on a host without long path support, and the folder was not recreated. Found by kevincommits (#1608). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/cpp_unwind_test.cpp')
0 files changed, 0 insertions, 0 deletions