Improve os2.read_directory

This commit is contained in:
gingerBill
2024-07-24 14:53:33 +01:00
parent 9d8953538b
commit 07b1819dc8
4 changed files with 30 additions and 42 deletions
+1 -1
View File
@@ -262,7 +262,7 @@ _file_info_from_get_file_information_by_handle :: proc(path: string, h: win32.HA
fi: File_Info
fi.fullpath = path
fi.name = basename(path)
fi.inode = u64(d.nFileIndexHigh)<<32 + u64(d.nFileIndexLow)
fi.inode = u128(u64(d.nFileIndexHigh)<<32 + u64(d.nFileIndexLow))
fi.size = i64(d.nFileSizeHigh)<<32 + i64(d.nFileSizeLow)
type, mode := _file_type_mode_from_file_attributes(d.dwFileAttributes, nil, 0)
fi.type = type