mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-23 11:17:03 -04:00
[wintogo] add an error popup if we can't select the version
This commit is contained in:
parent
9950f5c088
commit
3b4b742772
4 changed files with 18 additions and 10 deletions
|
@ -1281,7 +1281,8 @@ out:
|
|||
|
||||
// Checks which versions of Windows are available in an install.wim image
|
||||
// to set our extraction index. Asks the user to select one if needed.
|
||||
BOOL SetWinToGoIndex(void)
|
||||
// Returns -2 on user cancel, -1 on other error, >=0 on success.
|
||||
int SetWinToGoIndex(void)
|
||||
{
|
||||
char *mounted_iso, *build, image[128];
|
||||
char tmp_path[MAX_PATH] = "", xml_file[MAX_PATH] = "";
|
||||
|
@ -1344,7 +1345,7 @@ BOOL SetWinToGoIndex(void)
|
|||
if ((build_nr < 15000) && (SelectedDrive.MediaType != FixedMedia)) {
|
||||
if (MessageBoxExU(hMainDialog, lmprintf(MSG_098), lmprintf(MSG_190),
|
||||
MB_YESNO | MB_ICONWARNING | MB_IS_RTL, selected_langid) != IDYES)
|
||||
wintogo_index = -1;
|
||||
wintogo_index = -2;
|
||||
}
|
||||
}
|
||||
StrArrayDestroy(&version_name);
|
||||
|
@ -1353,7 +1354,7 @@ BOOL SetWinToGoIndex(void)
|
|||
out:
|
||||
DeleteFileU(xml_file);
|
||||
UnMountISO();
|
||||
return (wintogo_index >= 0);
|
||||
return wintogo_index;
|
||||
}
|
||||
|
||||
// http://technet.microsoft.com/en-ie/library/jj721578.aspx
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue