mirror of
https://github.com/libretro/RetroArch
synced 2025-02-01 00:32:46 +00:00
Merge pull request #12978 from 3rd-fork/master
Fix issues when opening file with extra long path name
This commit is contained in:
commit
ed6f33b173
@ -403,7 +403,7 @@ libretro_vfs_implementation_file *retro_vfs_file_open_impl(
|
||||
creationDisposition = (mode & RETRO_VFS_FILE_ACCESS_UPDATE_EXISTING) != 0 ?
|
||||
OPEN_ALWAYS : CREATE_ALWAYS;
|
||||
}
|
||||
|
||||
path_str = "\\\\?\\" + path_str;
|
||||
file_handle = CreateFile2FromAppW(path_str->Data(), desireAccess, FILE_SHARE_READ, creationDisposition, NULL);
|
||||
|
||||
if (file_handle != INVALID_HANDLE_VALUE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user