aboutsummaryrefslogtreecommitdiff
path: root/lib/io/src/win32
diff options
context:
space:
mode:
Diffstat (limited to 'lib/io/src/win32')
-rw-r--r--lib/io/src/win32/dir_iterator.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/io/src/win32/dir_iterator.c b/lib/io/src/win32/dir_iterator.c
index c9defc7..f504b65 100644
--- a/lib/io/src/win32/dir_iterator.c
+++ b/lib/io/src/win32/dir_iterator.c
@@ -91,6 +91,9 @@ static int dir_iterator_next(dir_iterator_t *it, dir_entry_t **out)
ent->mode = S_IFDIR | 0755;
} else {
ent->mode = S_IFREG | 0644;
+ ent->size = w32->ent.nFileSizeHigh;
+ ent->size <<= 32UL;
+ ent->size |= w32->ent.nFileSizeLow;
}
ent->mtime = w32time_to_unix(&(w32->ent.ftLastWriteTime));