mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-09-25 12:53:19 +02:00
ams_mitm: missing R_TRY around call to fs::FlushFile
This commit is contained in:
parent
e87a79f7f6
commit
a772408890
@ -173,7 +173,7 @@ namespace ams::mitm::settings {
|
||||
/* Increment offset to the next database entry. */
|
||||
db_offset += sizeof(settings::BluetoothDevicesSettings);
|
||||
}
|
||||
fs::FlushFile(file);
|
||||
R_TRY(fs::FlushFile(file));
|
||||
} else {
|
||||
R_TRY(fs::WriteFile(file, db_offset, db, total_entries * sizeof(settings::BluetoothDevicesSettings), fs::WriteOption::Flush));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user