Skip to content

Commit

Permalink
Fix mistake in windows file open
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisDenton committed Dec 27, 2024
1 parent 207ed1b commit 0af396f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/sys/pal/windows/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ impl File {
let alloc = c::FILE_ALLOCATION_INFO { AllocationSize: 0 };
let result = c::SetFileInformationByHandle(
handle.as_raw_handle(),
c::FileEndOfFileInfo,
c::FileAllocationInfo,
(&raw const alloc).cast::<c_void>(),
mem::size_of::<c::FILE_ALLOCATION_INFO>() as u32,
);
Expand Down

0 comments on commit 0af396f

Please sign in to comment.