Patch by Brezenbak:
authorThomas Bluemel <thomas@reactsoft.com>
Thu, 15 Dec 2005 01:20:46 +0000 (01:20 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Thu, 15 Dec 2005 01:20:46 +0000 (01:20 +0000)
- Fix loading of named resources. Fixes bug 1113

svn path=/trunk/; revision=20185

reactos/lib/rtl/res.c

index edd0c72..9c51341 100644 (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)