*/
/*
- * Copyright (C) 2010 Carl Thijssen
- * Copyright (C) 2012 Eric Biggers
+ * Copyright (C) 2012, 2013 Eric Biggers
*
* This file is part of wimlib, a library for working with WIM files.
*
*/
#include "wimlib_internal.h"
-#include "io.h"
+#include "buffer_io.h"
#include <limits.h>
/* First 8 bytes in every WIM file. */
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);