From 6975145db9f62f739cbfa9f08d15ef2f1dee55e5 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Fri, 31 May 2019 14:29:56 -0400 Subject: [PATCH] OBOE fix --- texthook/texthook.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/texthook/texthook.cc b/texthook/texthook.cc index 8c91251..0e2ecd0 100644 --- a/texthook/texthook.cc +++ b/texthook/texthook.cc @@ -327,7 +327,7 @@ int TextHook::HookStrlen(BYTE* data) { BYTE* orig = data; int nulls = hp.null_length ? hp.null_length : hp.type & USING_UNICODE ? 2 : 1; - for (int nullsRemaining = nulls; nullsRemaining >= 0; ++data) + for (int nullsRemaining = nulls; nullsRemaining > 0; ++data) if (*data == 0) nullsRemaining -= 1; else nullsRemaining = nulls; return data - orig;