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
8b3d4942
Commit
8b3d4942
authored
Sep 28, 2012
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Sep 28, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Spelling fixes.
parent
58f34f50
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
batch.c
programs/cmd/batch.c
+2
-2
wcmdmain.c
programs/cmd/wcmdmain.c
+3
-3
No files found.
programs/cmd/batch.c
View file @
8b3d4942
...
...
@@ -117,7 +117,7 @@ void WCMD_batch (WCHAR *file, WCHAR *command, BOOL called, WCHAR *startLabel, HA
* n [I] # of the parameter to return, counted from 0
* start [O] Optional. Pointer to the first char of param n in s
* end [O] Optional. Pointer to the last char of param n in s
* raw [I] True to return the parameter in raw format (quotes maintain
t
ed)
* raw [I] True to return the parameter in raw format (quotes maintained)
* False returns the parameter with quotes stripped
*
* RETURNS
...
...
@@ -152,7 +152,7 @@ WCHAR *WCMD_parameter (WCHAR *s, int n, WCHAR **start, WCHAR **end, BOOL raw)
p
++
;
if
(
*
p
==
'\0'
)
return
param
;
/* If we have reached the token number we want, remember the beginning of it
if it
*/
/* If we have reached the token number we want, remember the beginning of it */
if
(
start
!=
NULL
&&
curParamNb
==
n
)
*
start
=
p
;
/* Return the whole word up to the next delimiter, handling quotes in the middle
...
...
programs/cmd/wcmdmain.c
View file @
8b3d4942
...
...
@@ -1852,7 +1852,7 @@ WCHAR *WCMD_ReadAndParseLine(const WCHAR *optionalcmd, CMD_LIST **output, HANDLE
curRedirsLen
=
0
;
curCopyTo
=
curString
;
curLen
=
&
curStringLen
;
lastWasRedirect
=
FALSE
;
/* Required
for eg
spaces between > and filename */
lastWasRedirect
=
FALSE
;
/* Required
e.g. for
spaces between > and filename */
/* Parse every character on the line being processed */
while
(
*
curPos
!=
0x00
)
{
...
...
@@ -1864,7 +1864,7 @@ WCHAR *WCMD_ReadAndParseLine(const WCHAR *optionalcmd, CMD_LIST **output, HANDLE
lastWasWhiteSpace, onlyWhiteSpace);
*/
/* Prevent overflow caused by the caret escape char*/
/* Prevent overflow caused by the caret escape char
*/
if
(
*
curLen
>=
MAXSTRING
)
{
WINE_ERR
(
"Overflow detected in command
\n
"
);
return
NULL
;
...
...
@@ -2202,7 +2202,7 @@ WCHAR *WCMD_ReadAndParseLine(const WCHAR *optionalcmd, CMD_LIST **output, HANDLE
if
(
!
WCMD_fgets
(
extraData
,
MAXSTRING
,
readFrom
))
break
;
/* Edge case for carets - a completely blank line (i
e
was just
/* Edge case for carets - a completely blank line (i
.e.
was just
CRLF) is oddly added as an LF but then more data is received (but
only once more!) */
if
(
lastWasCaret
)
{
...
...
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