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
e22f6aa6
Commit
e22f6aa6
authored
Mar 23, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 24, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Ignore spaces before goto label.
parent
03651926
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
builtins.c
programs/cmd/builtins.c
+4
-2
No files found.
programs/cmd/builtins.c
View file @
e22f6aa6
...
...
@@ -1165,7 +1165,7 @@ void WCMD_goto (CMD_LIST **cmdList) {
return
;
}
if
(
context
!=
NULL
)
{
WCHAR
*
paramStart
=
param1
;
WCHAR
*
paramStart
=
param1
,
*
str
;
static
const
WCHAR
eofW
[]
=
{
':'
,
'e'
,
'o'
,
'f'
,
'\0'
};
/* Handle special :EOF label */
...
...
@@ -1179,7 +1179,9 @@ void WCMD_goto (CMD_LIST **cmdList) {
SetFilePointer
(
context
->
h
,
0
,
NULL
,
FILE_BEGIN
);
while
(
WCMD_fgets
(
string
,
sizeof
(
string
)
/
sizeof
(
WCHAR
),
context
->
h
))
{
if
((
string
[
0
]
==
':'
)
&&
(
lstrcmpiW
(
&
string
[
1
],
paramStart
)
==
0
))
return
;
str
=
string
;
while
(
isspaceW
(
*
str
))
str
++
;
if
((
*
str
==
':'
)
&&
(
lstrcmpiW
(
++
str
,
paramStart
)
==
0
))
return
;
}
WCMD_output
(
WCMD_LoadMessage
(
WCMD_NOTARGET
));
}
...
...
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