wok rev 20804

syslinux/iso2exe: add a MessageBox for Win9x
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 16 17:45:15 2019 +0100 (2019-02-16)
parents 01b30edcef4e
children bbfea59cd312
files syslinux/stuff/iso2exe/win32.c
line diff
     1.1 --- a/syslinux/stuff/iso2exe/win32.c	Sat Feb 16 12:52:08 2019 +0100
     1.2 +++ b/syslinux/stuff/iso2exe/win32.c	Sat Feb 16 17:45:15 2019 +0100
     1.3 @@ -191,13 +191,19 @@
     1.4  	GetModuleFileName(hInstance, isoFileName, MAX_PATH);
     1.5  	if (!iswinnt()) {
     1.6  #ifdef VCPI_LINUX_LOADER
     1.7 -		exec16bits(isoFileName);
     1.8 +		if (MessageBox(NULL,"This program must be run in DOS mode.\n"
     1.9 +			"I can try to launch it, but it more safe\n"
    1.10 +			"to reboot in DOS mode and run it at DOS prompt.",
    1.11 +			"Boot SliTaz in DOS mode ?",
    1.12 +			MB_YESNO|MB_ICONQUESTION) == IDYES) {
    1.13 +			exec16bits(isoFileName);
    1.14 +		}
    1.15  #else
    1.16  		MessageBox(NULL,"No support for Win9x yet.\n"
    1.17  				"Retry in DOS mode without emm386.\n",
    1.18  			   "Sorry", MB_OK|MB_ICONERROR);
    1.19 +#endif
    1.20  		exit(1);
    1.21 -#endif
    1.22  	}
    1.23  	if (!ishybrid(isoFileName)) {
    1.24  		if (MessageBox(NULL,"Not an isolinux hybrid ISO.\n"