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
d2474dec
Commit
d2474dec
authored
Jun 15, 2007
by
Jason Edmeades
Committed by
Alexandre Julliard
Jun 18, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd.exe: EXIT /b skips any residual commands.
parent
de4c6970
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
builtins.c
programs/cmd/builtins.c
+2
-1
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 @
d2474dec
...
@@ -2053,7 +2053,7 @@ int WCMD_volume (int mode, WCHAR *path) {
...
@@ -2053,7 +2053,7 @@ int WCMD_volume (int mode, WCHAR *path) {
*
*
*/
*/
void
WCMD_exit
(
void
)
{
void
WCMD_exit
(
CMD_LIST
**
cmdList
)
{
static
const
WCHAR
parmB
[]
=
{
'/'
,
'B'
,
'\0'
};
static
const
WCHAR
parmB
[]
=
{
'/'
,
'B'
,
'\0'
};
int
rc
=
atoiW
(
param1
);
/* Note: atoi of empty parameter is 0 */
int
rc
=
atoiW
(
param1
);
/* Note: atoi of empty parameter is 0 */
...
@@ -2061,6 +2061,7 @@ void WCMD_exit (void) {
...
@@ -2061,6 +2061,7 @@ void WCMD_exit (void) {
if
(
context
&&
lstrcmpiW
(
quals
,
parmB
)
==
0
)
{
if
(
context
&&
lstrcmpiW
(
quals
,
parmB
)
==
0
)
{
errorlevel
=
rc
;
errorlevel
=
rc
;
context
->
skip_rest
=
TRUE
;
context
->
skip_rest
=
TRUE
;
*
cmdList
=
NULL
;
}
else
{
}
else
{
ExitProcess
(
rc
);
ExitProcess
(
rc
);
}
}
...
...
programs/cmd/wcmd.h
View file @
d2474dec
...
@@ -50,7 +50,7 @@ void WCMD_directory (WCHAR *);
...
@@ -50,7 +50,7 @@ void WCMD_directory (WCHAR *);
void
WCMD_echo
(
const
WCHAR
*
);
void
WCMD_echo
(
const
WCHAR
*
);
void
WCMD_endlocal
(
void
);
void
WCMD_endlocal
(
void
);
void
WCMD_enter_paged_mode
(
const
WCHAR
*
);
void
WCMD_enter_paged_mode
(
const
WCHAR
*
);
void
WCMD_exit
(
void
);
void
WCMD_exit
(
CMD_LIST
**
cmdList
);
void
WCMD_for
(
WCHAR
*
,
CMD_LIST
**
cmdList
);
void
WCMD_for
(
WCHAR
*
,
CMD_LIST
**
cmdList
);
void
WCMD_give_help
(
WCHAR
*
command
);
void
WCMD_give_help
(
WCHAR
*
command
);
void
WCMD_goto
(
CMD_LIST
**
cmdList
);
void
WCMD_goto
(
CMD_LIST
**
cmdList
);
...
...
programs/cmd/wcmdmain.c
View file @
d2474dec
...
@@ -799,7 +799,7 @@ void WCMD_process_command (WCHAR *command, CMD_LIST **cmdList)
...
@@ -799,7 +799,7 @@ void WCMD_process_command (WCHAR *command, CMD_LIST **cmdList)
WCMD_more
(
p
);
WCMD_more
(
p
);
break
;
break
;
case
WCMD_EXIT
:
case
WCMD_EXIT
:
WCMD_exit
();
WCMD_exit
(
cmdList
);
break
;
break
;
default:
default:
WCMD_run_program
(
whichcmd
,
0
);
WCMD_run_program
(
whichcmd
,
0
);
...
...
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