cmd: Expand the storage space for qualifiers.
When parsing a command, after the first '/' we store the characters away in quals. The command itself can be MAXSTRING in bytes, but the quals was limited to MAX_PATH. This is incorrect, as you can provide very long qualifiers as well. Expand the space to allow the maximum size possible. Signed-off-by: Jason Edmeades <us@edmeades.me.uk> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
4030a95209
commit
dce5f89e48
|
@ -204,7 +204,7 @@ typedef struct _FOR_CONTEXT {
|
|||
* (uppercased and concatenated) and parameters entered, with environment
|
||||
* variables and batch parameters substitution already done.
|
||||
*/
|
||||
extern WCHAR quals[MAX_PATH], param1[MAXSTRING], param2[MAXSTRING];
|
||||
extern WCHAR quals[MAXSTRING], param1[MAXSTRING], param2[MAXSTRING];
|
||||
extern DWORD errorlevel;
|
||||
extern BATCH_CONTEXT *context;
|
||||
extern FOR_CONTEXT forloopcontext;
|
||||
|
|
|
@ -38,7 +38,7 @@ extern struct env_stack *pushd_directories;
|
|||
|
||||
BATCH_CONTEXT *context = NULL;
|
||||
DWORD errorlevel;
|
||||
WCHAR quals[MAX_PATH], param1[MAXSTRING], param2[MAXSTRING];
|
||||
WCHAR quals[MAXSTRING], param1[MAXSTRING], param2[MAXSTRING];
|
||||
BOOL interactive;
|
||||
FOR_CONTEXT forloopcontext; /* The 'for' loop context */
|
||||
BOOL delayedsubst = FALSE; /* The current delayed substitution setting */
|
||||
|
|
Loading…
Reference in New Issue