]> wimlib.net Git - wimlib/blobdiff - src/dentry.c
init_ads_entry(): Fix comparison
[wimlib] / src / dentry.c
index 677db1dbd77fdf48f47b87785316595879738ca7..2e12f339d5eceba57ef1cd80bd295c959e94c176 100644 (file)
@@ -781,7 +781,7 @@ init_ads_entry(struct wim_ads_entry *ads_entry, const void *name,
                ads_entry->stream_name = p;
                ads_entry->stream_name_nbytes = name_nbytes;
        } else {
-               if (name && *(const tchar*)name == T('\0')) {
+               if (name && *(const tchar*)name != T('\0')) {
                        ret = get_utf16le_name(name, &ads_entry->stream_name,
                                               &ads_entry->stream_name_nbytes);
                }