mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +00:00
Patch by Brezenbak:
- Fix loading of named resources. Fixes bug 1113 svn path=/trunk/; revision=20185
This commit is contained in:
parent
bb88aea9fe
commit
47a20532ec
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ IMAGE_RESOURCE_DIRECTORY *find_entry_by_name( IMAGE_RESOURCE_DIRECTORY *dir,
|
|||
{
|
||||
pos = (min + max) / 2;
|
||||
str = (const IMAGE_RESOURCE_DIR_STRING_U *)((const char *)root + entry[pos].NameOffset);
|
||||
res = wcsncmp( name, str->NameString, str->Length );
|
||||
res = _wcsnicmp( name, str->NameString, str->Length );
|
||||
if (!res && namelen == str->Length)
|
||||
{
|
||||
if (!entry[pos].DataIsDirectory == !want_dir)
|
||||
|
|
Loading…
Reference in a new issue