summaryrefslogtreecommitdiff
path: root/gptpart.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gptpart.cc')
-rw-r--r--gptpart.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gptpart.cc b/gptpart.cc
index 130add0..7ac629a 100644
--- a/gptpart.cc
+++ b/gptpart.cc
@@ -90,7 +90,8 @@ string GPTPart::GetDescription(void) {
// Return 1 if the partition is in use
int GPTPart::IsUsed(void) {
- return (firstLBA != UINT64_C(0));
+ return (partitionType != GUIDData("0x00"));
+// return (firstLBA != UINT64_C(0));
} // GPTPart::IsUsed()
// Set the type code to the specified one. Also changes the partition