mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-12-05 03:16:41 -08:00
cfg: fix config save atomicity (#760)
## Link to GitHub Issue or related Pull Request, if one exists n/a ## Description of change Fully flush `tmp` file and then use `MoveFileExW` instead of `CopyFileW` which guarantees atomic operation on NTFS. ## Testing
This commit is contained in:
1 parent
6fec169347
commit
ac51acdafe
4 files changed
+42
-16
No files matched your search
@@ -536,7 +536,7 @@ namespace overlay::windows {
|
||||
}
|
||||
|
||||
void CardManager::config_save() {
|
||||
log_info("cardmanager", "saving config");
|
||||
log_misc("cardmanager", "saving config...");
|
||||
|
||||
// create document
|
||||
Document doc;
|
||||
|
||||
Reference in new issue
Block a user