mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 04:41:39 +00:00
Fix directory iteration resolving symlinks.
This commit is contained in:
parent
26c4ab2eac
commit
e89012127d
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ struct FindHandle
|
|||
else if (iterator->is_regular_file())
|
||||
lpFindFileData->dwFileAttributes = ByteSwap(FILE_ATTRIBUTE_NORMAL);
|
||||
|
||||
std::u8string pathU8Str = std::filesystem::relative(iterator->path(), searchPath).u8string();
|
||||
std::u8string pathU8Str = iterator->path().lexically_relative(searchPath).u8string();
|
||||
uint64_t fileSize = iterator->file_size();
|
||||
strncpy(lpFindFileData->cFileName, (const char *)(pathU8Str.c_str()), sizeof(lpFindFileData->cFileName));
|
||||
lpFindFileData->nFileSizeLow = ByteSwap(uint32_t(fileSize >> 32U));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue