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
bcaf4fb4
Commit
bcaf4fb4
authored
Sep 11, 2007
by
Jason Edmeades
Committed by
Alexandre Julliard
Sep 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd.exe: Add suport for if 1==1 echo yes.
parent
118f3a65
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
builtins.c
programs/cmd/builtins.c
+2
-0
wcmdmain.c
programs/cmd/wcmdmain.c
+7
-1
No files found.
programs/cmd/builtins.c
View file @
bcaf4fb4
...
...
@@ -1160,6 +1160,8 @@ void WCMD_if (WCHAR *p, CMD_LIST **cmdList) {
else
{
strcpyW
(
condition
,
param1
);
}
WINE_TRACE
(
"Condition: %s
\n
"
,
wine_dbgstr_w
(
condition
));
if
(
!
lstrcmpiW
(
condition
,
errlvlW
))
{
if
(
errorlevel
>=
atoiW
(
WCMD_parameter
(
p
,
1
+
negate
,
NULL
)))
test
=
1
;
WCMD_parameter
(
p
,
2
+
negate
,
&
command
);
...
...
programs/cmd/wcmdmain.c
View file @
bcaf4fb4
...
...
@@ -708,6 +708,8 @@ void WCMD_execute (WCHAR *command,
}
p
=
WCMD_strtrim_leading_spaces
(
&
whichcmd
[
count
]);
WCMD_parse
(
p
,
quals
,
param1
,
param2
);
WINE_TRACE
(
"param1: %s, param2: %s
\n
"
,
wine_dbgstr_w
(
param1
),
wine_dbgstr_w
(
param2
));
switch
(
i
)
{
case
WCMD_ATTRIB
:
...
...
@@ -1313,11 +1315,15 @@ int p = 0;
case
'\0'
:
return
;
default:
while
((
*
s
!=
'\0'
)
&&
(
*
s
!=
' '
)
&&
(
*
s
!=
'\t'
))
{
while
((
*
s
!=
'\0'
)
&&
(
*
s
!=
' '
)
&&
(
*
s
!=
'\t'
)
&&
(
*
s
!=
'='
)
&&
(
*
s
!=
','
)
)
{
if
(
p
==
0
)
*
p1
++
=
*
s
++
;
else
if
(
p
==
1
)
*
p2
++
=
*
s
++
;
else
s
++
;
}
/* Skip concurrent parms */
while
((
*
s
==
' '
)
||
(
*
s
==
'\t'
)
||
(
*
s
==
'='
)
||
(
*
s
==
','
)
)
s
++
;
if
(
p
==
0
)
*
p1
=
'\0'
;
if
(
p
==
1
)
*
p2
=
'\0'
;
p
++
;
...
...
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