Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
8b73720d
Commit
8b73720d
authored
Jul 27, 2011
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Jul 27, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Fix some comments.
parent
011d5c33
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
wcmd.h
programs/cmd/wcmd.h
+1
-1
wcmdmain.c
programs/cmd/wcmdmain.c
+5
-5
No files found.
programs/cmd/wcmd.h
View file @
8b73720d
...
...
@@ -151,7 +151,7 @@ typedef struct _DIRECTORY_STACK
/*
* Serial nos of builtin commands. These constants must be in step with
* the list of strings defined in
WCMD.C
, and WCMD_EXIT *must* always be
* the list of strings defined in
wcmd.rc
, and WCMD_EXIT *must* always be
* the last one.
*
* Yes it *would* be nice to use an enumeration here, but the Resource
...
...
programs/cmd/wcmdmain.c
View file @
8b73720d
...
...
@@ -903,8 +903,8 @@ static void init_msvcrt_io_block(STARTUPINFOW* st)
if
(
st_p
.
cbReserved2
&&
st_p
.
lpReserved2
)
{
/* Override the entries for fd 0,1,2 if we happened
* to change those std handles (this depends on the way
w
cmd sets
* it
'
s new input & output handles)
* to change those std handles (this depends on the way cmd sets
* its new input & output handles)
*/
size_t
sz
=
max
(
sizeof
(
unsigned
)
+
(
sizeof
(
char
)
+
sizeof
(
HANDLE
))
*
3
,
st_p
.
cbReserved2
);
BYTE
*
ptr
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sz
);
...
...
@@ -1661,7 +1661,7 @@ static void WCMD_addCommand(WCHAR *command, int *commandLen,
/***************************************************************************
* WCMD_IsEndQuote
*
* Checks if the quote pointe
t
to is the end-quote.
* Checks if the quote pointe
d
to is the end-quote.
*
* Quotes end if:
*
...
...
@@ -1716,7 +1716,7 @@ static BOOL WCMD_IsEndQuote(WCHAR *quote, int quoteIndex)
*
* Either uses supplied input or
* Reads a file from the handle, and then...
* Parse the text buffer, spliting into separate commands
* Parse the text buffer, split
t
ing into separate commands
* - unquoted && strings split 2 commands but the 2nd is flagged as
* following an &&
* - ( as the first character just ups the bracket depth
...
...
@@ -2422,7 +2422,7 @@ int wmain (int argc, WCHAR *argvW[])
}
if
(
opt_c
)
{
/* If we do a "
w
cmd /c command", we don't want to allocate a new
/* If we do a "cmd /c command", we don't want to allocate a new
* console since the command returns immediately. Rather, we use
* the currently allocated input and output handles. This allows
* us to pipe to and read from the command interpreter.
...
...
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