Skip to content

Commit

Permalink
Finish arg parsing work for embedded images on Windows. Don't attempt…
Browse files Browse the repository at this point in the history
… to open

argv[1] as an image if there is an embedded image.
  • Loading branch information
eliotmiranda committed Mar 22, 2024
1 parent 5b3cef5 commit 7927053
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platforms/win32/vm/sqWin32Main.c
Expand Up @@ -2280,7 +2280,7 @@ parseGenericArgs(int argc, char *argv[])
}

/* Always allow the command-line to override an implicit image name. */
if (*argv[0] && IsImage(argv[0])) {
if (*argv[0] && !findEmbeddedImage() && IsImage(argv[0])) {
strncpy(imageName, argv[0], MAX_PATH_UTF8);
MultiByteToWideChar(CP_UTF8, 0, imageName, -1, imageNameW, MAX_PATH);
/* if provided, the image is a vm argument. */
Expand Down

0 comments on commit 7927053

Please sign in to comment.