Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
e5a26bc2
Commit
e5a26bc2
authored
Mar 08, 2007
by
Jason Edmeades
Committed by
Alexandre Julliard
Mar 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd.exe: Support PUSHD with wildcards.
parent
121a8302
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
builtins.c
programs/cmd/builtins.c
+4
-5
wcmd.h
programs/cmd/wcmd.h
+1
-1
wcmdmain.c
programs/cmd/wcmdmain.c
+1
-1
No files found.
programs/cmd/builtins.c
View file @
e5a26bc2
...
...
@@ -600,9 +600,8 @@ void WCMD_goto (void) {
* Push a directory onto the stack
*/
void
WCMD_pushd
(
voi
d
)
{
void
WCMD_pushd
(
char
*
comman
d
)
{
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
;
...
...
programs/cmd/wcmd.h
View file @
e5a26bc2
...
...
@@ -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
);
...
...
programs/cmd/wcmdmain.c
View file @
e5a26bc2
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment