hosversion: Fix logic

This commit is contained in:
plutooo 2019-02-17 21:41:47 +01:00
parent 848a5c3ad9
commit fdc6d1a182

View File

@ -30,6 +30,9 @@ bool hosversionAtLeast(u8 major, u8 minor, u8 micro)
if (g_kernelLowerBound >= ver)
return true;
if (g_kernelUpperBound < ver)
return false;
fatalSimple(-1);
}
@ -40,6 +43,9 @@ bool hosversionBefore(u8 major, u8 minor, u8 micro)
if (g_hasHosVersion)
return g_hosVersion < ver;
if (g_kernelLowerBound >= ver)
return false;
if (g_kernelUpperBound < ver)
return true;