Skip to content

Commit 5577537

Browse files
ChrisDentongitbot
authored and
gitbot
committed
Fix mistake in windows file open
1 parent 1a44c18 commit 5577537

File tree

1 file changed

+1
-1
lines changed
  • std/src/sys/pal/windows

1 file changed

+1
-1
lines changed

std/src/sys/pal/windows/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ impl File {
323323
let alloc = c::FILE_ALLOCATION_INFO { AllocationSize: 0 };
324324
let result = c::SetFileInformationByHandle(
325325
handle.as_raw_handle(),
326-
c::FileEndOfFileInfo,
326+
c::FileAllocationInfo,
327327
(&raw const alloc).cast::<c_void>(),
328328
mem::size_of::<c::FILE_ALLOCATION_INFO>() as u32,
329329
);

0 commit comments

Comments
 (0)