From 1d8e15a6a80894e3c0a76dd160cec3ccb2108471 Mon Sep 17 00:00:00 2001 From: Visual Ehrmanntraut <30368284+VisualEhrmanntraut@users.noreply.github.com> Date: Tue, 12 Nov 2024 16:19:54 +0200 Subject: [PATCH] fix: Invert size check don't sleep while sleep deprived --- NootedRed/NRed.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NootedRed/NRed.cpp b/NootedRed/NRed.cpp index 968848a..ff9b015 100644 --- a/NootedRed/NRed.cpp +++ b/NootedRed/NRed.cpp @@ -386,7 +386,7 @@ bool NRed::getVBIOSFromVFCT() { auto *vfct = static_cast(vfctData->getBytesNoCopy()); PANIC_COND(vfct == nullptr, "NRed", "VFCT OSData::getBytesNoCopy returned null"); - if (vfctData->getLength() > sizeof(VFCT)) { + if (vfctData->getLength() < sizeof(VFCT)) { DBGLOG("NRed", "VFCT table present but broken (too short #1)."); return false; }