mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
cmd: Enlarge max. length of PATH variable.
This commit is contained in:
parent
13c0c0d047
commit
6ae5814623
@ -806,7 +806,7 @@ static void init_msvcrt_io_block(STARTUPINFO* st)
|
||||
void WCMD_run_program (char *command, int called) {
|
||||
|
||||
char temp[MAX_PATH];
|
||||
char pathtosearch[MAX_PATH];
|
||||
char pathtosearch[MAXSTRING];
|
||||
char *pathposn;
|
||||
char stemofsearch[MAX_PATH];
|
||||
char *lastSlash;
|
||||
@ -834,7 +834,7 @@ void WCMD_run_program (char *command, int called) {
|
||||
} else {
|
||||
|
||||
/* Convert eg. ..\fred to include a directory by removing file part */
|
||||
GetFullPathName(param1, MAX_PATH, pathtosearch, NULL);
|
||||
GetFullPathName(param1, sizeof(pathtosearch), pathtosearch, NULL);
|
||||
lastSlash = strrchr(pathtosearch, '\\');
|
||||
if (lastSlash) *lastSlash = 0x00;
|
||||
if (strchr(lastSlash, '.') != NULL) extensionsupplied = TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user