diff --git a/dlls/kernel32/tests/actctx.c b/dlls/kernel32/tests/actctx.c
index 06b5c9cae6b..ae9674a756c 100644
--- a/dlls/kernel32/tests/actctx.c
+++ b/dlls/kernel32/tests/actctx.c
@@ -186,7 +186,7 @@ static const char manifest_wndcls2[] =
" wndClass3"
" wndClass4"
" "
+" flags=\"HiddeN,CoNTROL,rESTRICTED\" />"
" "
" "
""
diff --git a/dlls/ntdll/actctx.c b/dlls/ntdll/actctx.c
index bdbb330634b..5d88b9acdc7 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
{
diff --git a/dlls/oleaut32/tests/typelib.c b/dlls/oleaut32/tests/typelib.c
index 73ec679933e..7adf0645d84 100644
--- a/dlls/oleaut32/tests/typelib.c
+++ b/dlls/oleaut32/tests/typelib.c
@@ -4806,7 +4806,7 @@ static const char manifest_dep[] =
""
""
" "
""
""