[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

@ -405,6 +405,7 @@
<ClInclude Include="..\src\dev.h" />
<ClInclude Include="..\src\ui.h" />
<ClInclude Include="..\src\ui_data.h" />
<ClInclude Include="..\src\vhd.h" />
<ClInclude Include="..\src\winio.h" />
<ClInclude Include="..\src\wue.h" />
</ItemGroup>

View file

@ -188,6 +188,9 @@
<ClInclude Include="..\src\wue.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\vhd.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<None Include="..\res\rufus.ico">