Merge branch 'w32-gstat-ino-master' into 'master'

W32: Correctly set st_ino when doing private stat()

See merge request GNOME/glib!1330
This commit is contained in:
Philip Withnall 2020-01-20 10:49:23 +00:00
commit fda1c651d5

View File

@ -309,6 +309,7 @@ _g_win32_fill_privatestat (const struct __stat64 *statbuf,
GWin32PrivateStat *buf)
{
buf->st_dev = statbuf->st_dev;
buf->st_ino = statbuf->st_ino;
buf->st_mode = statbuf->st_mode;
buf->volume_serial = handle_info->dwVolumeSerialNumber;
buf->file_index = (((guint64) handle_info->nFileIndexHigh) << 32) | handle_info->nFileIndexLow;