ntdll: use case-insensitive matching for typelib flags

Austin English austinenglish at gmail.com
Fri Feb 21 17:06:27 CST 2014


Fixes https://bugs.winehq.org/show_bug.cgi?id=35636

-- 
-Austin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20140221/4402911b/attachment.html>
-------------- next part --------------
diff --git a/dlls/ntdll/actctx.c b/dlls/ntdll/actctx.c
index bdbb330..5d88b9a 100644
--- a/dlls/ntdll/actctx.c
+++ b/dlls/ntdll/actctx.c
@@ -1646,13 +1646,13 @@ static BOOL parse_typelib_flags(const xmlstr_t *value, struct entity *entity)
         start = str;
         while (*str != ',' && (i++ < value->len)) str++;
 
-        if (!strncmpW(start, restrictedW, str-start))
+        if (!strncmpiW(start, restrictedW, str-start))
             *flags |= LIBFLAG_FRESTRICTED;
-        else if (!strncmpW(start, controlW, str-start))
+        else if (!strncmpiW(start, controlW, str-start))
             *flags |= LIBFLAG_FCONTROL;
-        else if (!strncmpW(start, hiddenW, str-start))
+        else if (!strncmpiW(start, hiddenW, str-start))
             *flags |= LIBFLAG_FHIDDEN;
-        else if (!strncmpW(start, hasdiskimageW, str-start))
+        else if (!strncmpiW(start, hasdiskimageW, str-start))
             *flags |= LIBFLAG_FHASDISKIMAGE;
         else
         {


More information about the wine-patches mailing list