# HG changeset patch # User Pascal Bellard # Date 1550335515 -3600 # Node ID 0d54617661f0f40aa6f275439568f0c910da909f # Parent 01b30edcef4eb16d47da4e684bffda1e1a8820e2 syslinux/iso2exe: add a MessageBox for Win9x diff -r 01b30edcef4e -r 0d54617661f0 syslinux/stuff/iso2exe/win32.c --- a/syslinux/stuff/iso2exe/win32.c Sat Feb 16 12:52:08 2019 +0100 +++ b/syslinux/stuff/iso2exe/win32.c Sat Feb 16 17:45:15 2019 +0100 @@ -191,13 +191,19 @@ GetModuleFileName(hInstance, isoFileName, MAX_PATH); if (!iswinnt()) { #ifdef VCPI_LINUX_LOADER - exec16bits(isoFileName); + if (MessageBox(NULL,"This program must be run in DOS mode.\n" + "I can try to launch it, but it more safe\n" + "to reboot in DOS mode and run it at DOS prompt.", + "Boot SliTaz in DOS mode ?", + MB_YESNO|MB_ICONQUESTION) == IDYES) { + exec16bits(isoFileName); + } #else MessageBox(NULL,"No support for Win9x yet.\n" "Retry in DOS mode without emm386.\n", "Sorry", MB_OK|MB_ICONERROR); +#endif exit(1); -#endif } if (!ishybrid(isoFileName)) { if (MessageBox(NULL,"Not an isolinux hybrid ISO.\n"