summaryrefslogtreecommitdiff
path: root/gptpart.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gptpart.cc')
-rw-r--r--gptpart.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gptpart.cc b/gptpart.cc
index 0684fea..56415e1 100644
--- a/gptpart.cc
+++ b/gptpart.cc
@@ -444,13 +444,13 @@ void GPTPart::ChangeType(void) {
cout << "Current type is " << hex << GetHexType() << dec << " (" << GetTypeName() << ")\n";
do {
- cout << "Hex code or GUID (L to show codes, Enter = " << hex << DEFAULT_GPT_TYPE << dec << "): ";
+ cout << "Hex code or GUID (L to show codes, Enter = " << hex << GetHexType() << dec << "): ";
line = ReadString();
if ((line[0] == 'L') || (line[0] == 'l')) {
partitionType.ShowAllTypes();
} else {
if (line.length() == 0)
- tempType = DEFAULT_GPT_TYPE;
+ tempType = GetHexType();
else
tempType = line;
} // if/else