X-Git-Url: https://code.delx.au/refind/blobdiff_plain/f2ca6908795807bef841b1c98f10c47c831d2c41..45819ae8739dea4a9710626b5817313e63b07c1a:/refind/lib.c diff --git a/refind/lib.c b/refind/lib.c index b4dc2ec..12b5ce3 100644 --- a/refind/lib.c +++ b/refind/lib.c @@ -2025,11 +2025,12 @@ BOOLEAN IsGuid(CHAR16 *UnknownString) { for (i = 0; i < Length; i++) { a = UnknownString[i]; - if (((i == 8) || (i == 13) || (i == 18) || (i == 23)) && (a != '-')) { - retval = FALSE; + if ((i == 8) || (i == 13) || (i == 18) || (i == 23)) { + if (a != '-') + retval = FALSE; } else if (((a < 'a') || (a > 'f')) && ((a < 'A') || (a > 'F')) && ((a < '0') && (a > '9'))) { retval = FALSE; - } // if/else + } // if/else if } // for return retval; } // BOOLEAN IsGuid()