summaryrefslogtreecommitdiffstats
path: root/src/ntfs_adv.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2007-12-02 21:21:18 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2007-12-02 21:21:18 +0100
commit920b5e4ff3c58982b1531638fad6d0bbdfacf770 (patch)
treefc230f7efa66c76c9cd8db5fe7605a4dae5ff416 /src/ntfs_adv.c
parent50d67341a5893bb76021cd693bf29e608faa815f (diff)
Add some synchronisation points, should help to deal with unexpected program termination
Diffstat (limited to 'src/ntfs_adv.c')
-rw-r--r--src/ntfs_adv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ntfs_adv.c b/src/ntfs_adv.c
index c049cbf..1f682b1 100644
--- a/src/ntfs_adv.c
+++ b/src/ntfs_adv.c
@@ -141,6 +141,7 @@ static void menu_write_ntfs_boot_sector_cli(disk_t *disk_car, partition_t *parti
{
display_message("Write error: Can't write new NTFS backup boot sector\n");
}
+ disk_car->sync(disk_car);
}
return ;
}
@@ -208,6 +209,7 @@ static void menu_write_ntfs_boot_sector_ncurses(disk_t *disk_car, partition_t *p
{
display_message("Write error: Can't write new NTFS backup boot sector\n");
}
+ disk_car->sync(disk_car);
}
return;
case 'd':