mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Do not expand command lines automatically. This fixes 'objdir \??'.
svn path=/trunk/; revision=4203
This commit is contained in:
parent
74a0e47a7c
commit
9321cd1e2c
1 changed files with 4 additions and 4 deletions
|
@ -45,7 +45,7 @@ int add(char* name)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int expand(char* name)
|
||||
int expand(char* name, int flag)
|
||||
{
|
||||
char* s;
|
||||
WIN32_FIND_DATA fd;
|
||||
|
@ -55,7 +55,7 @@ int expand(char* name)
|
|||
int pos;
|
||||
|
||||
s = strpbrk(name, "*?");
|
||||
if (s) {
|
||||
if (s && flag) {
|
||||
hFile = FindFirstFile(name, &fd);
|
||||
if (hFile != INVALID_HANDLE_VALUE) {
|
||||
while(s != name && *s != '/' && *s != '\\')
|
||||
|
@ -98,7 +98,7 @@ int __getmainargs(int* argc, char*** argv, char*** env, int flag)
|
|||
|
||||
while (_acmdln[i]) {
|
||||
if (_acmdln[i] == ' ') {
|
||||
expand(strndup(_acmdln + afterlastspace, i - afterlastspace));
|
||||
expand(strndup(_acmdln + afterlastspace, i - afterlastspace), flag);
|
||||
i++;
|
||||
while (_acmdln[i]==' ')
|
||||
i++;
|
||||
|
@ -109,7 +109,7 @@ int __getmainargs(int* argc, char*** argv, char*** env, int flag)
|
|||
}
|
||||
|
||||
if (_acmdln[afterlastspace] != 0) {
|
||||
expand(strndup(_acmdln+afterlastspace, i - afterlastspace));
|
||||
expand(strndup(_acmdln+afterlastspace, i - afterlastspace), flag);
|
||||
}
|
||||
HeapValidate(hHeap, 0, NULL);
|
||||
*argc = __argc;
|
||||
|
|
Loading…
Reference in a new issue