X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fwildcard.c;h=2bc9c6b8a583ca3a88250e8b58e3f324371a891a;hb=96038b4b60c2b97a83301357b35cc56950eb39b1;hp=5715e5fcf76f2209e81130f689ebfadd3a9b8196;hpb=3071e89c11d1be71cf45b694432e5908e0c4ded9;p=wimlib diff --git a/src/wildcard.c b/src/wildcard.c index 5715e5fc..2bc9c6b8 100644 --- a/src/wildcard.c +++ b/src/wildcard.c @@ -26,6 +26,7 @@ #endif #include + #include "wimlib/dentry.h" #include "wimlib/encoding.h" #include "wimlib/error.h" @@ -190,11 +191,11 @@ match_dentry(struct wim_dentry *cur_dentry, struct match_dentry_ctx *ctx) size_t name_nchars; int ret; - if (cur_dentry->file_name_nbytes == 0) + if (cur_dentry->d_name_nbytes == 0) return 0; - ret = utf16le_get_tstr(cur_dentry->file_name, - cur_dentry->file_name_nbytes, + ret = utf16le_get_tstr(cur_dentry->d_name, + cur_dentry->d_name_nbytes, &name, &name_nchars); if (ret) return ret;