diff --git a/sdk/lib/rtl/actctx.c b/sdk/lib/rtl/actctx.c index 3768f7201b4..4cf9bbaa4bd 100644 --- a/sdk/lib/rtl/actctx.c +++ b/sdk/lib/rtl/actctx.c @@ -3222,7 +3222,8 @@ static struct string_index *find_string_index(const struct strsection_header *se { const WCHAR *nameW = (WCHAR*)((BYTE*)section + iter->name_offset); - if (!strcmpiW(nameW, name->Buffer)) + if (!_wcsnicmp(nameW, name->Buffer, name->Length / sizeof(WCHAR)) && + wcslen(nameW) == name->Length / sizeof(WCHAR)) { index = iter; break;