mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00
[RTL] find_string_index: name parameter may not be null terminated
This commit is contained in:
parent
ff8d8a8162
commit
51c694274f
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue