We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f65dc4f + 0af396f commit 5544091Copy full SHA for 5544091
library/std/src/sys/pal/windows/fs.rs
@@ -323,7 +323,7 @@ impl File {
323
let alloc = c::FILE_ALLOCATION_INFO { AllocationSize: 0 };
324
let result = c::SetFileInformationByHandle(
325
handle.as_raw_handle(),
326
- c::FileEndOfFileInfo,
+ c::FileAllocationInfo,
327
(&raw const alloc).cast::<c_void>(),
328
mem::size_of::<c::FILE_ALLOCATION_INFO>() as u32,
329
);
0 commit comments