Merge pull request #12978 from 3rd-fork/master

Fix issues when opening file with extra long path name
This commit is contained in:
Autechre 2021-09-13 00:00:03 +02:00 committed by GitHub
commit ed6f33b173
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)