Patch by Brezenbak:

- Fix loading of named resources. Fixes bug 1113

svn path=/trunk/; revision=20185
This commit is contained in:
Thomas Bluemel 2005-12-15 01:20:46 +00:00
parent bb88aea9fe
commit 47a20532ec

View file

@ -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)