X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fresource.c;h=51bde70822c7ab33e5341ef33fdb63cd0e64fa83;hp=5ffba67bb61d4de3c5ad17d30aba7b2eebc52c68;hb=52cccded7706cd556f78ce7d2506937d2a216293;hpb=e250592104fddd7e37ae170f6ea1bf6af4222cd6 diff --git a/src/resource.c b/src/resource.c index 5ffba67b..51bde708 100644 --- a/src/resource.c +++ b/src/resource.c @@ -574,17 +574,15 @@ int read_wim_resource(const struct lookup_table_entry *lte, u8 buf[], case RESOURCE_IN_NTFS_VOLUME: wimlib_assert(lte->ntfs_loc != NULL); wimlib_assert(lte->attr != NULL); - { - if (lte->ntfs_loc->is_reparse_point) - offset += 8; - if (ntfs_attr_pread(lte->attr, offset, size, buf) != size) { - ERROR_WITH_ERRNO("Error reading NTFS attribute " - "at `%s'", - lte->ntfs_loc->path_utf8); - ret = WIMLIB_ERR_NTFS_3G; - } - break; + if (lte->ntfs_loc->is_reparse_point) + offset += 8; + if (ntfs_attr_pread(lte->attr, offset, size, buf) != size) { + ERROR_WITH_ERRNO("Error reading NTFS attribute " + "at `%s'", + lte->ntfs_loc->path_utf8); + ret = WIMLIB_ERR_NTFS_3G; } + break; #endif default: wimlib_assert(0);