ams_mitm: missing R_TRY around call to fs::FlushFile

This commit is contained in:
ndeadly 2023-03-09 19:15:10 +01:00
commit a772408890

View file

@ -173,7 +173,7 @@ namespace ams::mitm::settings {
/* Increment offset to the next database entry. */ /* Increment offset to the next database entry. */
db_offset += sizeof(settings::BluetoothDevicesSettings); db_offset += sizeof(settings::BluetoothDevicesSettings);
} }
fs::FlushFile(file); R_TRY(fs::FlushFile(file));
} else { } else {
R_TRY(fs::WriteFile(file, db_offset, db, total_entries * sizeof(settings::BluetoothDevicesSettings), fs::WriteOption::Flush)); R_TRY(fs::WriteFile(file, db_offset, db, total_entries * sizeof(settings::BluetoothDevicesSettings), fs::WriteOption::Flush));
} }