Skip to content

Commit

Permalink
Unrolled build for rust-lang#134819
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#134819 - ChrisDenton:trunc, r=Mark-Simulacrum

Fix mistake in windows file open

In rust-lang#134722 this should have been `c::FileAllocationInfo` not `c::FileEndOfFileInfo`. Oops.
  • Loading branch information
rust-timer authored Dec 27, 2024
2 parents 42591a4 + 0af396f commit 1e8c18e
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 1e8c18e

Please sign in to comment.