mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
Fix UWP build
This commit is contained in:
parent
04b88a9eba
commit
5e6619edd1
@ -714,7 +714,7 @@ if #[cfg(target_vendor = "uwp")] {
|
|||||||
pub struct FILE_STANDARD_INFO {
|
pub struct FILE_STANDARD_INFO {
|
||||||
pub AllocationSize: LARGE_INTEGER,
|
pub AllocationSize: LARGE_INTEGER,
|
||||||
pub EndOfFile: LARGE_INTEGER,
|
pub EndOfFile: LARGE_INTEGER,
|
||||||
pub NumberOfLink: DWORD,
|
pub NumberOfLinks: DWORD,
|
||||||
pub DeletePending: BOOLEAN,
|
pub DeletePending: BOOLEAN,
|
||||||
pub Directory: BOOLEAN,
|
pub Directory: BOOLEAN,
|
||||||
}
|
}
|
||||||
|
@ -357,7 +357,7 @@ impl File {
|
|||||||
size as c::DWORD))?;
|
size as c::DWORD))?;
|
||||||
attr.file_size = info.AllocationSize as u64;
|
attr.file_size = info.AllocationSize as u64;
|
||||||
attr.number_of_links = Some(info.NumberOfLinks);
|
attr.number_of_links = Some(info.NumberOfLinks);
|
||||||
if attr.is_reparse_point() {
|
if attr.file_type().is_reparse_point() {
|
||||||
let mut b = [0; c::MAXIMUM_REPARSE_DATA_BUFFER_SIZE];
|
let mut b = [0; c::MAXIMUM_REPARSE_DATA_BUFFER_SIZE];
|
||||||
if let Ok((_, buf)) = self.reparse_point(&mut b) {
|
if let Ok((_, buf)) = self.reparse_point(&mut b) {
|
||||||
attr.reparse_tag = buf.ReparseTag;
|
attr.reparse_tag = buf.ReparseTag;
|
||||||
|
Loading…
Reference in New Issue
Block a user