Rollup merge of #101481 - ChrisDenton:uwp-fix, r=thomcc

Fix compile errors for uwp-windows-msvc targets

Fixes #101480
This commit is contained in:
Yuki Okushi 2022-09-07 07:43:53 +09:00 committed by GitHub
commit 923dae5c9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -403,7 +403,7 @@ impl File {
mem::size_of::<c::FILE_ATTRIBUTE_TAG_INFO>().try_into().unwrap(), mem::size_of::<c::FILE_ATTRIBUTE_TAG_INFO>().try_into().unwrap(),
))?; ))?;
if attr_tag.FileAttributes & c::FILE_ATTRIBUTE_REPARSE_POINT != 0 { if attr_tag.FileAttributes & c::FILE_ATTRIBUTE_REPARSE_POINT != 0 {
reparse_tag = attr_tag.ReparseTag; attr.reparse_tag = attr_tag.ReparseTag;
} }
} }
Ok(attr) Ok(attr)