]> wimlib.net Git - wimlib/blobdiff - src/header.c
begin_read(): Remove redundant check
[wimlib] / src / header.c
index bb17209117d6f74e03198447bad08981accfa8e4..3d60138339e527c8d9383da3330170625e5cc618 100644 (file)
@@ -5,7 +5,6 @@
  */
 
 /*
- * Copyright (C) 2010 Carl Thijssen
  * Copyright (C) 2012 Eric Biggers
  *
  * This file is part of wimlib, a library for working with WIM files.
@@ -25,7 +24,7 @@
  */
 
 #include "wimlib_internal.h"
-#include "io.h"
+#include "buffer_io.h"
 #include <limits.h>
 
 /* First 8 bytes in every WIM file. */
@@ -114,8 +113,8 @@ int read_header(FILE *fp, struct wim_header *hdr, int open_flags)
                return WIMLIB_ERR_INVALID_PART_NUMBER;
        }
 
-       if (!(open_flags & WIMLIB_OPEN_FLAG_SPLIT_OK)
-           && (hdr->part_number != 1 || hdr->total_parts != 1))
+       if (!(open_flags & WIMLIB_OPEN_FLAG_SPLIT_OK) &&
+           hdr->total_parts != 1)
        {
                ERROR("This WIM is part %u of a %u-part WIM",
                      hdr->part_number, hdr->total_parts);