]> wimlib.net Git - wimlib/blobdiff - src/dentry.c
match_pattern(): No DEBUG if pattern does not match
[wimlib] / src / dentry.c
index ad78f7db3b2d370dce75758c944627ee8076922e..3b15a44b6166eb534d8e19e4dec4fd248c0e1497 100644 (file)
@@ -671,6 +671,9 @@ ads_entry_has_name(const struct wim_ads_entry *entry,
                                        ignore_case);
 }
 
+/* Default case sensitivity behavior for searches with
+ * WIMLIB_CASE_PLATFORM_DEFAULT specified.  This can be modified by
+ * wimlib_global_init().  */
 bool default_ignore_case =
 #ifdef __WIN32__
        true
@@ -1491,7 +1494,7 @@ inode_get_ads_entry(struct wim_inode *inode, const tchar *stream_name,
                        if (ads_entry_has_name(&inode->i_ads_entries[i],
                                               stream_name_utf16le,
                                               stream_name_utf16le_nbytes,
-                                              false))
+                                              default_ignore_case))
                        {
                                if (idx_ret)
                                        *idx_ret = i;