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
a607f537
Commit
a607f537
authored
Mar 02, 2010
by
Arjun Comar
Committed by
Alexandre Julliard
Mar 04, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Fix cmd to take /? as a help parameter.
parent
3b6498a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
builtins.c
programs/cmd/builtins.c
+2
-2
wcmdmain.c
programs/cmd/wcmdmain.c
+9
-0
No files found.
programs/cmd/builtins.c
View file @
a607f537
...
...
@@ -1134,12 +1134,12 @@ void WCMD_give_help (WCHAR *command) {
else
{
for
(
i
=
0
;
i
<=
WCMD_EXIT
;
i
++
)
{
if
(
CompareStringW
(
LOCALE_USER_DEFAULT
,
NORM_IGNORECASE
|
SORT_STRINGSORT
,
param1
,
-
1
,
inbuilt
[
i
],
-
1
)
==
2
)
{
command
,
-
1
,
inbuilt
[
i
],
-
1
)
==
2
)
{
WCMD_output_asis
(
WCMD_LoadMessage
(
i
));
return
;
}
}
WCMD_output
(
WCMD_LoadMessage
(
WCMD_NOCMDHELP
),
param1
);
WCMD_output
(
WCMD_LoadMessage
(
WCMD_NOCMDHELP
),
command
);
}
return
;
}
...
...
programs/cmd/wcmdmain.c
View file @
a607f537
...
...
@@ -1411,6 +1411,15 @@ void WCMD_execute (WCHAR *command, WCHAR *redirects,
WCMD_parse
(
p
,
quals
,
param1
,
param2
);
WINE_TRACE
(
"param1: %s, param2: %s
\n
"
,
wine_dbgstr_w
(
param1
),
wine_dbgstr_w
(
param2
));
if
((
p
[
0
]
==
'/'
)
&&
(
p
[
1
]
==
'?'
))
{
/*this is a help request for a program*/
i
=
WCMD_HELP
;
memcpy
(
p
,
whichcmd
,
count
*
sizeof
(
WCHAR
));
p
[
count
]
=
'\0'
;
}
switch
(
i
)
{
case
WCMD_ATTRIB
:
...
...
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