[wue] add fallback to index 1 if boot.wim index 2 is not available

* Some "unofficial" Windows ISOs use a custom boot.wim that only includes the Setup
  image at index 1, rather than at index 2, after the PE image, for official ISOs.
* Also refactor to add a long needed vhd.h header.
* Also fix a MinGW warning.
This commit is contained in:
Pete Batard 2022-08-02 20:14:29 +01:00
parent eda1f59a38
commit fbad63666e
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
11 changed files with 243 additions and 134 deletions

View file

@ -44,6 +44,7 @@
#include "localization.h"
#include "br.h"
#include "vhd.h"
#include "wue.h"
#include "fat16.h"
#include "fat32.h"