Skip to content

Commit

Permalink
Windows: Fix starting the console VM when the image name is in the in…
Browse files Browse the repository at this point in the history
…i file.
  • Loading branch information
eliotmiranda committed Apr 15, 2020
1 parent 92f4161 commit 01fdf86
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion platforms/win32/vm/sqWin32Main.c
Expand Up @@ -2208,7 +2208,10 @@ parseGenericArgs(int argc, char *argv[])
case IMAGE_SUBSYSTEM_WINDOWS_CE_GUI:
return 1; /* ok not to have an image since user can choose one. */
default:
return 0;
/* It is OK to run the console VM provided an image has been
* provided by the ini file.
*/
return imageName != 0;
}

if (*imageName == 0) { /* only try to use image name if none is provided */
Expand Down

0 comments on commit 01fdf86

Please sign in to comment.