From bffc16115d23b649599b49f9c4d986dc2d128435 Mon Sep 17 00:00:00 2001 From: donnaskiez Date: Mon, 22 Jul 2024 20:43:23 +1000 Subject: [PATCH] internal c lib --- driver/lib/stdlib.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/driver/lib/stdlib.c b/driver/lib/stdlib.c index cb87c3e..d0c1408 100644 --- a/driver/lib/stdlib.c +++ b/driver/lib/stdlib.c @@ -38,9 +38,8 @@ IntCompareMemory(_In_ PVOID Source1, _In_ PVOID Source2, _In_ SIZE_T Length) PCHAR IntFindSubstring(_In_ PCHAR String1, _In_ PCHAR String2) { - if (*String2 == '\0') { + if (*String2 == '\0') return String1; - } for (PCHAR s1 = String1; *s1 != '\0'; s1++) { PCHAR p1 = s1;