cmd.exe: Support PUSHD with wildcards.
This commit is contained in:
parent
121a830219
commit
e5a26bc24d
|
@ -600,9 +600,8 @@ void WCMD_goto (void) {
|
|||
* Push a directory onto the stack
|
||||
*/
|
||||
|
||||
void WCMD_pushd (void) {
|
||||
void WCMD_pushd (char *command) {
|
||||
struct env_stack *curdir;
|
||||
BOOL status;
|
||||
WCHAR *thisdir;
|
||||
|
||||
curdir = LocalAlloc (LMEM_FIXED, sizeof (struct env_stack));
|
||||
|
@ -615,9 +614,9 @@ void WCMD_pushd (void) {
|
|||
}
|
||||
|
||||
GetCurrentDirectoryW (1024, thisdir);
|
||||
status = SetCurrentDirectoryA (param1);
|
||||
if (!status) {
|
||||
WCMD_print_error ();
|
||||
errorlevel = 0;
|
||||
WCMD_setshow_default(command);
|
||||
if (errorlevel) {
|
||||
LocalFree(curdir);
|
||||
LocalFree(thisdir);
|
||||
return;
|
||||
|
|
|
@ -55,7 +55,7 @@ void WCMD_pipe (char *command);
|
|||
void WCMD_popd (void);
|
||||
void WCMD_print_error (void);
|
||||
void WCMD_process_command (char *command);
|
||||
void WCMD_pushd (void);
|
||||
void WCMD_pushd (char *);
|
||||
int WCMD_read_console (char *string, int str_len);
|
||||
void WCMD_remove_dir (char *command);
|
||||
void WCMD_rename (void);
|
||||
|
|
|
@ -640,7 +640,7 @@ void WCMD_process_command (char *command)
|
|||
WCMD_volume (0, p);
|
||||
break;
|
||||
case WCMD_PUSHD:
|
||||
WCMD_pushd();
|
||||
WCMD_pushd(p);
|
||||
break;
|
||||
case WCMD_POPD:
|
||||
WCMD_popd();
|
||||
|
|
Loading…
Reference in New Issue