1
Fork 0

Rollup merge of #135837 - ChrisDenton:trunc, r=Noratrieb

Remove test panic from File::open

Fixes #135831
This commit is contained in:
Matthias Krüger 2025-01-22 20:37:27 +01:00 committed by GitHub
commit 0bdc1015cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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(),