Skip to content

Commit

Permalink
fix: Invert size check
Browse files Browse the repository at this point in the history
don't sleep while sleep deprived
  • Loading branch information
VisualEhrmanntraut committed Nov 12, 2024
1 parent 0aa6c57 commit 1d8e15a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NootedRed/NRed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ bool NRed::getVBIOSFromVFCT() {
auto *vfct = static_cast<const VFCT *>(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;
}
Expand Down

0 comments on commit 1d8e15a

Please sign in to comment.