diff options
author | Hüseyin Açacak <huseyin@janeasystems.com> | 2025-02-14 16:31:22 +0300 |
---|---|---|
committer | Saúl Ibarra Corretgé <s@saghul.net> | 2025-02-17 08:35:37 +0100 |
commit | 82cdfb75ff9bbd0dc65820ca418b7c5d412ff4d7 (patch) | |
tree | 17dcb6f4bc6f21e11f38a64b5ac7204d425bd47f /src | |
parent | dcace2a393a22650100e8a89debe168e92970ca4 (diff) | |
download | libuv-82cdfb75ff9bbd0dc65820ca418b7c5d412ff4d7.tar.gz libuv-82cdfb75ff9bbd0dc65820ca418b7c5d412ff4d7.zip |
win: fix the inconsistency in volume serial number
Diffstat (limited to 'src')
-rw-r--r-- | src/win/fs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/win/fs.c b/src/win/fs.c index a4742aa2..b4ed760e 100644 --- a/src/win/fs.c +++ b/src/win/fs.c @@ -1788,7 +1788,7 @@ INLINE static int fs__stat_handle(HANDLE handle, uv_stat_t* statbuf, SetLastError(pRtlNtStatusToDosError(nt_status)); return -1; } else { - stat_info.VolumeSerialNumber.QuadPart = volume_info.VolumeSerialNumber; + stat_info.VolumeSerialNumber.LowPart = volume_info.VolumeSerialNumber; } stat_info.DeviceType = device_info.DeviceType; @@ -1839,7 +1839,7 @@ INLINE static void fs__stat_assign_statbuf_null(uv_stat_t* statbuf) { INLINE static void fs__stat_assign_statbuf(uv_stat_t* statbuf, FILE_STAT_BASIC_INFORMATION stat_info, int do_lstat) { - statbuf->st_dev = stat_info.VolumeSerialNumber.QuadPart; + statbuf->st_dev = stat_info.VolumeSerialNumber.LowPart; /* Todo: st_mode should probably always be 0666 for everyone. We might also * want to report 0777 if the file is a .exe or a directory. |