Merge branch 'win32-localfileinfo-fixes' into 'main'

glocalfileinfo: A few fixes on win32

See merge request GNOME/glib!4114
This commit is contained in:
Philip Withnall 2024-06-14 17:25:13 +00:00
commit a78c80e9ab

View File

@ -2021,13 +2021,14 @@ _g_local_file_info_get (const char *basename,
_g_file_info_set_attribute_boolean_by_id (info, G_FILE_ATTRIBUTE_ID_DOS_IS_SYSTEM,
(statbuf.attributes & FILE_ATTRIBUTE_SYSTEM));
if (stat_ok)
{
_g_file_info_set_attribute_boolean_by_id (info, G_FILE_ATTRIBUTE_ID_DOS_IS_MOUNTPOINT,
(statbuf.reparse_tag == IO_REPARSE_TAG_MOUNT_POINT));
if (statbuf.reparse_tag != 0)
_g_file_info_set_attribute_uint32_by_id (info, G_FILE_ATTRIBUTE_ID_DOS_REPARSE_POINT_TAG, statbuf.reparse_tag);
_g_file_info_set_attribute_boolean_by_id (info, G_FILE_ATTRIBUTE_ID_STANDARD_IS_BACKUP, FALSE);
}
#endif
symlink_target = NULL;