From 67acacf528e882708963a3e8e50500cb6bd87de9 Mon Sep 17 00:00:00 2001 From: belliash Date: Mon, 26 Sep 2022 23:02:38 +0200 Subject: [PATCH] Use SIZE_T for length limiter --- sdk/xtdk/rtlfuncs.h | 2 +- xtoskrnl/rtl/widestr.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/xtdk/rtlfuncs.h b/sdk/xtdk/rtlfuncs.h index f53c22c..3da0b38 100644 --- a/sdk/xtdk/rtlfuncs.h +++ b/sdk/xtdk/rtlfuncs.h @@ -71,7 +71,7 @@ XTCDECL INT RtlWideStringCompare(IN CONST PWCHAR String1, IN CONST PWCHAR String2, - IN CONST ULONG Length); + IN CONST SIZE_T Length); XTCDECL PWCHAR diff --git a/xtoskrnl/rtl/widestr.c b/xtoskrnl/rtl/widestr.c index 467f4ff..458dd99 100644 --- a/xtoskrnl/rtl/widestr.c +++ b/xtoskrnl/rtl/widestr.c @@ -29,9 +29,9 @@ XTCDECL INT RtlWideStringCompare(IN CONST PWCHAR String1, IN CONST PWCHAR String2, - IN CONST ULONG Length) + IN CONST SIZE_T Length) { - ULONG Index; + SIZE_T Index; /* Iterate through the strings */ for(Index = 0; ; Index++) {