mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-25 20:24:26 -04:00
[iso] fix crash when opening Windows ISOs
* Closes #1268
* Issue was introduced in 521034da99
and has
to do with VS2017's handling of static strings in RELEASE mode.
Fix is to use a static char array instead.
* Also fix MinGw build warnings and increase process search timeout
This commit is contained in:
parent
326ae54f45
commit
f98c243eb8
5 changed files with 12 additions and 11 deletions
|
@ -959,7 +959,7 @@ static void CALLBACK BlockingTimer(HWND hWnd, UINT uMsg, UINT_PTR idEvent, DWORD
|
|||
#define PRINT_ISO_PROP(b, ...) do {if (b) uprintf(__VA_ARGS__);} while(0)
|
||||
static void DisplayISOProps(void)
|
||||
{
|
||||
static char* inst_str = "[1/#]";
|
||||
static char inst_str[] = " [1/#]";
|
||||
int i;
|
||||
|
||||
uprintf("ISO label: '%s'", img_report.label);
|
||||
|
@ -995,7 +995,7 @@ static void DisplayISOProps(void)
|
|||
HAS_BOOTMGR_BIOS(img_report) ? (HAS_BOOTMGR_EFI(img_report) ? "BIOS and UEFI" : "BIOS only") : "UEFI only");
|
||||
PRINT_ISO_PROP(HAS_WINPE(img_report), " Uses: WinPE %s", (img_report.uses_minint) ? "(with /minint)" : "");
|
||||
if (HAS_WININST(img_report)) {
|
||||
inst_str[3] = '0' + img_report.wininst_index;
|
||||
inst_str[4] = '0' + img_report.wininst_index;
|
||||
uprintf(" Uses: Install.%s%s (version %d.%d.%d%s)", &img_report.wininst_path[0][strlen(img_report.wininst_path[0]) - 3],
|
||||
(img_report.wininst_index > 1) ? inst_str : "", (img_report.wininst_version >> 24) & 0xff,
|
||||
(img_report.wininst_version >> 16) & 0xff, (img_report.wininst_version >> 8) & 0xff,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue