mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-09-08 02:25:44 +00:00
ams_mitm: missing R_TRY around call to fs::FlushFile
This commit is contained in:
parent
e87a79f7f6
commit
a772408890
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue