We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04b88a9 commit 5e6619eCopy full SHA for 5e6619e
src/libstd/sys/windows/c.rs
@@ -714,7 +714,7 @@ if #[cfg(target_vendor = "uwp")] {
714
pub struct FILE_STANDARD_INFO {
715
pub AllocationSize: LARGE_INTEGER,
716
pub EndOfFile: LARGE_INTEGER,
717
- pub NumberOfLink: DWORD,
+ pub NumberOfLinks: DWORD,
718
pub DeletePending: BOOLEAN,
719
pub Directory: BOOLEAN,
720
}
src/libstd/sys/windows/fs.rs
@@ -357,7 +357,7 @@ impl File {
357
size as c::DWORD))?;
358
attr.file_size = info.AllocationSize as u64;
359
attr.number_of_links = Some(info.NumberOfLinks);
360
- if attr.is_reparse_point() {
+ if attr.file_type().is_reparse_point() {
361
let mut b = [0; c::MAXIMUM_REPARSE_DATA_BUFFER_SIZE];
362
if let Ok((_, buf)) = self.reparse_point(&mut b) {
363
attr.reparse_tag = buf.ReparseTag;
0 commit comments