mirror of
https://github.com/Artikash/Textractor.git
synced 2024-12-23 08:54:12 +08:00
OBOE fix
This commit is contained in:
parent
23a6b116cd
commit
6975145db9
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user