diff --git a/Docs/src/basic.but b/Docs/src/basic.but index 03a81e90..65544da7 100644 --- a/Docs/src/basic.but +++ b/Docs/src/basic.but @@ -23,7 +23,7 @@ Execute the specified program and continue immediately. Note that the file speci \S2{execshell} ExecShell -\c action command [parameters] [SW_SHOWNORMAL | SW_SHOWMAXIMIZED | SW_SHOWMINIMIZED | SW_HIDE] +\c action command [parameters] [SW_SHOWDEFAULT | SW_SHOWNORMAL | SW_SHOWMAXIMIZED | SW_SHOWMINIMIZED | SW_HIDE] Execute the specified program using ShellExecute. Note that action is usually "open", "print", etc, but can be an empty string to use the default action. Parameters and the show type are optional. $OUTDIR is used for the working directory. The error flag is set if the process could not be launched. diff --git a/Source/script.cpp b/Source/script.cpp index 93076a9a..dabd8979 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -3888,8 +3888,8 @@ int CEXEBuild::doCommand(int which_token, LineParser &line) ent.offsets[3]=SW_SHOWNORMAL; if (line.getnumtokens() > 4) { - int tab[4]={SW_SHOWNORMAL,SW_SHOWMAXIMIZED,SW_SHOWMINIMIZED,SW_HIDE}; - int a=line.gettoken_enum(4,"SW_SHOWNORMAL\0SW_SHOWMAXIMIZED\0SW_SHOWMINIMIZED\0SW_HIDE\0"); + int tab[5]={SW_SHOWDEFAULT,SW_SHOWNORMAL,SW_SHOWMAXIMIZED,SW_SHOWMINIMIZED,SW_HIDE}; + int a=line.gettoken_enum(4,"SW_SHOWDEFAULT\0SW_SHOWNORMAL\0SW_SHOWMAXIMIZED\0SW_SHOWMINIMIZED\0SW_HIDE\0"); if (a < 0) PRINTHELP() ent.offsets[3]=tab[a]; }