*/
int push_language( USHORT *list, ULONG pos, WORD lang )
{
- int i;
+ ULONG i;
for (i = 0; i < pos; i++) if (list[i] == lang) return pos;
list[pos++] = lang;
return pos;
{
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)
_SEH_TRY
{
- if (ResourceInfo)
+ if (ResourceInfo)
{
DPRINT( "module %p type %ws name %ws lang %04lx level %ld\n",
BaseAddress, (LPCWSTR)ResourceInfo->Type,