diff options
| author | Chris Denton <chris@chrisdenton.dev> | 2024-12-24 11:04:12 +0000 |
|---|---|---|
| committer | Chris Denton <chris@chrisdenton.dev> | 2024-12-27 09:20:37 +0000 |
| commit | 0af396f183b815be2b9905faee499c5cddf1c0b9 (patch) | |
| tree | 73387e43bc03a775ad8906fc4bd4ec872bab03cd /library/std | |
| parent | 207ed1b18538b3bc77177b162ca8a05223e5e797 (diff) | |
| download | rust-0af396f183b815be2b9905faee499c5cddf1c0b9.tar.gz rust-0af396f183b815be2b9905faee499c5cddf1c0b9.zip | |
Fix mistake in windows file open
Diffstat (limited to 'library/std')
| -rw-r--r-- | library/std/src/sys/pal/windows/fs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/pal/windows/fs.rs b/library/std/src/sys/pal/windows/fs.rs index dda4259919b..553049099fc 100644 --- a/library/std/src/sys/pal/windows/fs.rs +++ b/library/std/src/sys/pal/windows/fs.rs @@ -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, ); |
