We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 41885a4 + fed5f98 commit 0bdc101Copy full SHA for 0bdc101
library/std/src/sys/pal/windows/fs.rs
@@ -328,9 +328,6 @@ impl File {
328
mem::size_of::<c::FILE_ALLOCATION_INFO>() as u32,
329
);
330
if result == 0 {
331
- if api::get_last_error().code != 0 {
332
- panic!("FILE_ALLOCATION_INFO failed!!!");
333
- }
334
let eof = c::FILE_END_OF_FILE_INFO { EndOfFile: 0 };
335
let result = c::SetFileInformationByHandle(
336
handle.as_raw_handle(),
0 commit comments