[gparted] Ensure commit_to_os() return code is passed up through commit() method
- From: Curtis Gedak <gedakc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gparted] Ensure commit_to_os() return code is passed up through commit() method
- Date: Fri, 8 Jan 2010 18:02:59 +0000 (UTC)
commit 51d1c4c552c7020e87b5566973574539168ef712
Author: Curtis Gedak <gedakc gmail com>
Date: Fri Jan 8 10:59:04 2010 -0700
Ensure commit_to_os() return code is passed up through commit() method
This problem was discovered while investigating bug #604298
src/GParted_Core.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/GParted_Core.cc b/src/GParted_Core.cc
index eb9bb1a..7a942de 100644
--- a/src/GParted_Core.cc
+++ b/src/GParted_Core.cc
@@ -2750,7 +2750,7 @@ bool GParted_Core::commit()
{
bool succes = ped_disk_commit_to_dev( lp_disk ) ;
- commit_to_os( 10 ) ;
+ succes = commit_to_os( 10 ) && succes ;
return succes ;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]