From: Eric Biggers Date: Tue, 21 May 2013 20:03:27 +0000 (-0500) Subject: verify_inode(): Fix verifying already-resolved inodes X-Git-Tag: v1.4.1~54 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=c6eff1f0a0721331237030bdce4490bfafd436f7;hp=28d3d79a1894375e457237097bc80f0d92746018 verify_inode(): Fix verifying already-resolved inodes --- diff --git a/src/verify.c b/src/verify.c index a4be1f8b..3e709767 100644 --- a/src/verify.c +++ b/src/verify.c @@ -66,11 +66,11 @@ verify_inode(struct wim_inode *inode, const WIMStruct *w) * empty stream. * * This check is skipped on split WIMs. */ - if (w->hdr.total_parts == 1) { + if (w->hdr.total_parts == 1 && !inode->i_resolved) { for (unsigned i = 0; i <= inode->i_num_ads; i++) { struct wim_lookup_table_entry *lte; const u8 *hash; - hash = inode_stream_hash_unresolved(inode, i); + hash = inode_stream_hash(inode, i); lte = __lookup_resource(table, hash); if (!lte && !is_zero_hash(hash)) { ERROR("Could not find lookup table entry for stream " @@ -87,7 +87,7 @@ verify_inode(struct wim_inode *inode, const WIMStruct *w) unsigned num_unnamed_streams = 0; for (unsigned i = 0; i <= inode->i_num_ads; i++) { const u8 *hash; - hash = inode_stream_hash_unresolved(inode, i); + hash = inode_stream_hash(inode, i); if (inode_stream_name_nbytes(inode, i) == 0 && !is_zero_hash(hash)) num_unnamed_streams++; }