From 96871fd042c7e88a629b790df133dffed458654e Mon Sep 17 00:00:00 2001 From: belliash Date: Sat, 13 Aug 2022 17:24:22 +0200 Subject: [PATCH] Correct data types --- sdk/xtklib/includes/librtl.h | 2 +- sdk/xtklib/rtl/widestr.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sdk/xtklib/includes/librtl.h b/sdk/xtklib/includes/librtl.h index 0744ac2..9e28cfe 100644 --- a/sdk/xtklib/includes/librtl.h +++ b/sdk/xtklib/includes/librtl.h @@ -13,7 +13,7 @@ #include "xttypes.h" -UINT64 +INT RtlWideStringCompare(IN CONST PWCHAR String1, IN CONST PWCHAR String2, IN CONST ULONG Length); diff --git a/sdk/xtklib/rtl/widestr.c b/sdk/xtklib/rtl/widestr.c index 25eb725..e56702e 100644 --- a/sdk/xtklib/rtl/widestr.c +++ b/sdk/xtklib/rtl/widestr.c @@ -25,12 +25,12 @@ * * @since XT 1.0 */ -UINT64 +INT RtlWideStringCompare(IN CONST PWCHAR String1, IN CONST PWCHAR String2, IN CONST ULONG Length) { - UINT64 Index; + ULONG Index; /* Iterate through the strings */ for(Index = 0; Index < Length; Index++) { @@ -74,8 +74,8 @@ RtlWideStringTokenize(IN PWCHAR String, IN CONST PWCHAR Delimiter, IN OUT PWCHAR *SavePtr) { - WCHAR *Span, *Token; - UINT64 Char, SpanChar; + PWCHAR Span, Token; + WCHAR Char, SpanChar; /* Check if there is anything to tokenize */ if(String == NULL && (String = *SavePtr) == NULL)