We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a44c18 commit 5577537Copy full SHA for 5577537
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