X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fsolid.c;h=35f2eef0a20695c3a279af668a1c62ae22a4b3ed;hp=59971d46d0ac7a9ecaffe9032553593cbada655b;hb=HEAD;hpb=8df639463ae0c754d2b1af3d6c1d22e59ee3ccf8 diff --git a/src/solid.c b/src/solid.c index 59971d46..a6aef418 100644 --- a/src/solid.c +++ b/src/solid.c @@ -18,7 +18,7 @@ * details. * * You should have received a copy of the GNU Lesser General Public License - * along with this file; if not, see http://www.gnu.org/licenses/. + * along with this file; if not, see https://www.gnu.org/licenses/. */ #ifdef HAVE_CONFIG_H @@ -139,6 +139,8 @@ dentry_fill_in_solid_sort_names(struct wim_dentry *dentry, void *_blob_table) struct blob_descriptor *blob; hash = inode_get_hash_of_unnamed_data_stream(inode); + if (!hash) /* unhashed? */ + return 0; head = &blob_table->table[load_size_t_unaligned(hash) % blob_table->capacity]; hlist_for_each_entry(blob, head, hash_list_2) { @@ -204,8 +206,8 @@ sort_blob_list_for_solid_compression(struct list_head *blob_list) blob_table.capacity]); break; case BLOB_IN_FILE_ON_DISK: - #ifdef __WIN32__ - case BLOB_IN_WINNT_FILE_ON_DISK: + #ifdef _WIN32 + case BLOB_IN_WINDOWS_FILE: #endif blob_set_solid_sort_name_from_inode(blob, blob->file_inode); break;