Check if one wide string ended before the other
Some checks failed
Builds / ExectOS (amd64, release) (push) Failing after 1m11s
Builds / ExectOS (amd64, debug) (push) Failing after 1m13s
Builds / ExectOS (i686, release) (push) Failing after 41s
Builds / ExectOS (i686, debug) (push) Failing after 44s

This commit is contained in:
2026-07-28 18:22:03 +02:00
parent 0439d9526b
commit 06ec2bc189

View File

@@ -124,6 +124,13 @@ RTL::WideString::CompareWideStringInsensitive(IN PCWSTR String1,
Index++; Index++;
} }
/* Check if one wide string ended before the other */
if((Length == 0 || Index < Length) && (String1[Index] != String2[Index]))
{
/* Wide strings are not equal */
return String1[Index] > String2[Index] ? 1 : -1;
}
/* Strings are equal */ /* Strings are equal */
return 0; return 0;
} }