mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-08 06:15:02 +00:00
Windows: store all 64 bits of the size in the stat structure
We force stat to be a stat64 structure, so we can and should put all 64 bits of the size in st_size.
This commit is contained in:
parent
1af56d7d7e
commit
d9e5430e5a
@ -80,7 +80,7 @@ static int do_lstat(const char *file_name, struct stat *buf)
|
||||
buf->st_uid = 0;
|
||||
buf->st_nlink = 1;
|
||||
buf->st_mode = (mode_t)fMode;
|
||||
buf->st_size = fdata.nFileSizeLow; /* Can't use nFileSizeHigh, since it's not a stat64 */
|
||||
buf->st_size = (fdata.nFileSizeHigh << 32) + fdata.nFileSizeLow;
|
||||
buf->st_dev = buf->st_rdev = (_getdrive() - 1);
|
||||
buf->st_atime = filetime_to_time_t(&(fdata.ftLastAccessTime));
|
||||
buf->st_mtime = filetime_to_time_t(&(fdata.ftLastWriteTime));
|
||||
|
Loading…
Reference in New Issue
Block a user