Fixed bug that caused spurious "1" exit condition in gdisk. Also

modified Windows warning text in light of common use of GPT on Windows
8 and 8.1.
This commit is contained in:
Roderick W. Smith
2014-03-29 00:45:59 -04:00
parent f694803eca
commit a920398fa3
2 changed files with 11 additions and 6 deletions

View File

@@ -328,11 +328,11 @@ void ReverseBytes(void* theValue, int numBytes) {
void WinWarning(void) {
#ifdef _WIN32
cout << "\a************************************************************************\n"
<< "Most versions of Windows cannot boot from a GPT disk, and most varieties\n"
<< "prior to Vista cannot read GPT disks. Therefore, you should exit now\n"
<< "unless you understand the implications of converting MBR to GPT or creating\n"
<< "a new GPT disk layout!\n"
<< "************************************************************************\n\n";
<< "Most versions of Windows cannot boot from a GPT disk except on a UEFI-based\n"
<< "computer, and most varieties prior to Vista cannot read GPT disks. Therefore,\n"
<< "you should exit now unless you understand the implications of converting MBR\n"
<< "to GPT or creating a new GPT disk layout!\n"
<< "************************************************************************\n\n";
cout << "Are you SURE you want to continue? ";
if (GetYN() != 'Y')
exit(0);