diff --git a/files/dos_fs.c b/files/dos_fs.c index 3ec28bdc3a6..be1aefbc5f4 100644 --- a/files/dos_fs.c +++ b/files/dos_fs.c @@ -1878,6 +1878,14 @@ int DOSFS_FindNext( const char *path, const char *short_mask, WideCharToMultiByte(CP_ACP, 0, entryW.cAlternateFileName, -1, entry->cAlternateFileName, sizeof(entry->cAlternateFileName), NULL, NULL); count = info.cur_pos - skip; + + entry->dwFileAttributes = entryW.dwFileAttributes; + entry->nFileSizeHigh = entryW.nFileSizeHigh; + entry->nFileSizeLow = entryW.nFileSizeLow; + entry->ftCreationTime = entryW.ftCreationTime; + entry->ftLastAccessTime = entryW.ftLastAccessTime; + entry->ftLastWriteTime = entryW.ftLastWriteTime; + } else count = 0;