The \\<nr> magic in LoadTypeLibEx found directories, which was not
intended. Return error in that case.
diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c
index 087889f..b184992 100644
--- a/dlls/oleaut32/typelib.c
+++ b/dlls/oleaut32/typelib.c
@@ -280,6 +280,8 @@
if(!SearchPathW(NULL,szFileCopy,NULL,sizeof(szPath)/sizeof(WCHAR),
szPath,NULL))
return TYPE_E_CANTLOADLIBRARY;
+ if (GetFileAttributesW(szFileCopy) & FILE_ATTRIBUTE_DIRECTORY)
+ return TYPE_E_CANTLOADLIBRARY;
} else
return TYPE_E_CANTLOADLIBRARY;
}