Remove test panic from File::open

This commit is contained in:
Chris Denton 2025-01-21 17:27:24 +00:00
parent cd805f09ff
commit fed5f98c47
No known key found for this signature in database
GPG Key ID: 713472F2F45627DE

View File

@ -328,9 +328,6 @@ impl File {
mem::size_of::<c::FILE_ALLOCATION_INFO>() as u32,
);
if result == 0 {
if api::get_last_error().code != 0 {
panic!("FILE_ALLOCATION_INFO failed!!!");
}
let eof = c::FILE_END_OF_FILE_INFO { EndOfFile: 0 };
let result = c::SetFileInformationByHandle(
handle.as_raw_handle(),