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
afe4d80a
Commit
afe4d80a
authored
Jun 03, 2007
by
Jason Edmeades
Committed by
Alexandre Julliard
Jun 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd.exe: Fix 'help garbage' command post-unicode support.
parent
b8aa5fc5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
builtins.c
programs/cmd/builtins.c
+3
-6
wcmd.h
programs/cmd/wcmd.h
+1
-0
No files found.
programs/cmd/builtins.c
View file @
afe4d80a
...
...
@@ -46,7 +46,7 @@ struct env_stack *saved_environment;
struct
env_stack
*
pushd_directories
;
extern
HINSTANCE
hinst
;
extern
WCHAR
*
inbuilt
[
];
extern
WCHAR
inbuilt
[][
10
];
extern
int
echo_mode
,
verify_mode
,
defaultColor
;
extern
WCHAR
quals
[
MAX_PATH
],
param1
[
MAX_PATH
],
param2
[
MAX_PATH
];
extern
BATCH_CONTEXT
*
context
;
...
...
@@ -659,19 +659,16 @@ void WCMD_execute (WCHAR *orig_cmd, WCHAR *param, WCHAR *subst) {
void
WCMD_give_help
(
WCHAR
*
command
)
{
int
i
;
WCHAR
buffer
[
2048
];
command
=
WCMD_strtrim_leading_spaces
(
command
);
if
(
strlenW
(
command
)
==
0
)
{
LoadString
(
hinst
,
1000
,
buffer
,
sizeof
(
buffer
)
/
sizeof
(
WCHAR
));
WCMD_output_asis
(
buffer
);
WCMD_output_asis
(
WCMD_LoadMessage
(
WCMD_ALLHELP
));
}
else
{
for
(
i
=
0
;
i
<=
WCMD_EXIT
;
i
++
)
{
if
(
CompareString
(
LOCALE_USER_DEFAULT
,
NORM_IGNORECASE
|
SORT_STRINGSORT
,
param1
,
-
1
,
inbuilt
[
i
],
-
1
)
==
2
)
{
LoadString
(
hinst
,
i
,
buffer
,
sizeof
(
buffer
)
/
sizeof
(
WCHAR
));
WCMD_output_asis
(
buffer
);
WCMD_output_asis
(
WCMD_LoadMessage
(
i
));
return
;
}
}
...
...
programs/cmd/wcmd.h
View file @
afe4d80a
...
...
@@ -189,6 +189,7 @@ extern WCHAR anykey[];
extern
WCHAR
version_string
[];
/* Translated messages */
#define WCMD_ALLHELP 1000
#define WCMD_CONFIRM 1001
#define WCMD_YES 1002
#define WCMD_NO 1003
...
...
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