mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 03:07:24 +03:00
Auto merge of #138928 - ChrisDenton:fix-uwp, r=tgross35
Fix UWP reparse point check Fixes #138921
This commit is contained in:
@@ -547,7 +547,7 @@ pub fn file_attr(&self) -> io::Result<FileAttr> {
|
||||
))?;
|
||||
attr.file_size = info.AllocationSize as u64;
|
||||
attr.number_of_links = Some(info.NumberOfLinks);
|
||||
if attr.file_type().is_reparse_point() {
|
||||
if attr.attributes & c::FILE_ATTRIBUTE_REPARSE_POINT != 0 {
|
||||
let mut attr_tag: c::FILE_ATTRIBUTE_TAG_INFO = mem::zeroed();
|
||||
cvt(c::GetFileInformationByHandleEx(
|
||||
self.handle.as_raw_handle(),
|
||||
|
||||
Reference in New Issue
Block a user