git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@804 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-11-25 01:43:28 +00:00
parent 2af2759e55
commit 9389a7c7a1
2 changed files with 10 additions and 1 deletions

View File

@@ -54,6 +54,7 @@ MwDirectoryEntry* MwDirectoryRead(void* handle) {
dir_t* dir = handle;
MwDirectoryEntry* entry = malloc(sizeof(*entry));
#ifdef _WIN32
ULARGE_INTEGER* l;
if(dir->first) {
dir->first = 0;
} else if(FindNextFile(dir->hFind, &dir->ffd) == 0) {
@@ -73,6 +74,10 @@ MwDirectoryEntry* MwDirectoryRead(void* handle) {
entry->size |= dir->ffd.nFileSizeHigh;
entry->size = entry->size << 32;
entry->size |= dir->ffd.nFileSizeLow;
l = (ULARGE_INTEGER*)&dir->ffd.ftLastWriteTime;
entry->mtime = l->QuadPart / 10000000 - 11644473600;
#else
struct dirent* d;
struct stat s;