Skip to content

Commit 5e6619e

Browse files
committed
Fix UWP build
1 parent 04b88a9 commit 5e6619e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libstd/sys/windows/c.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ if #[cfg(target_vendor = "uwp")] {
714714
pub struct FILE_STANDARD_INFO {
715715
pub AllocationSize: LARGE_INTEGER,
716716
pub EndOfFile: LARGE_INTEGER,
717-
pub NumberOfLink: DWORD,
717+
pub NumberOfLinks: DWORD,
718718
pub DeletePending: BOOLEAN,
719719
pub Directory: BOOLEAN,
720720
}

src/libstd/sys/windows/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ impl File {
357357
size as c::DWORD))?;
358358
attr.file_size = info.AllocationSize as u64;
359359
attr.number_of_links = Some(info.NumberOfLinks);
360-
if attr.is_reparse_point() {
360+
if attr.file_type().is_reparse_point() {
361361
let mut b = [0; c::MAXIMUM_REPARSE_DATA_BUFFER_SIZE];
362362
if let Ok((_, buf)) = self.reparse_point(&mut b) {
363363
attr.reparse_tag = buf.ReparseTag;

0 commit comments

Comments
 (0)