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
272af8fa
Commit
272af8fa
authored
Jul 19, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Skip xml comments in manifests.
parent
214fb6e8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
actctx.c
dlls/ntdll/actctx.c
+18
-1
No files found.
dlls/ntdll/actctx.c
View file @
272af8fa
...
@@ -541,14 +541,31 @@ static BOOL next_xml_elem(xmlbuf_t* xmlbuf, xmlstr_t* elem)
...
@@ -541,14 +541,31 @@ static BOOL next_xml_elem(xmlbuf_t* xmlbuf, xmlstr_t* elem)
{
{
const
char
*
ptr
;
const
char
*
ptr
;
for
(;;)
{
ptr
=
memchr
(
xmlbuf
->
ptr
,
'<'
,
xmlbuf
->
end
-
xmlbuf
->
ptr
);
ptr
=
memchr
(
xmlbuf
->
ptr
,
'<'
,
xmlbuf
->
end
-
xmlbuf
->
ptr
);
if
(
!
ptr
)
if
(
!
ptr
)
{
{
xmlbuf
->
ptr
=
xmlbuf
->
end
;
xmlbuf
->
ptr
=
xmlbuf
->
end
;
return
FALSE
;
return
FALSE
;
}
}
ptr
++
;
if
(
ptr
+
3
<
xmlbuf
->
end
&&
!
strncmp
(
ptr
,
"!--"
,
3
))
/* skip comment */
{
for
(
ptr
+=
3
;
ptr
+
3
<=
xmlbuf
->
end
;
ptr
++
)
if
(
ptr
[
0
]
==
'-'
&&
ptr
[
1
]
==
'-'
&&
ptr
[
2
]
==
'>'
)
break
;
if
(
ptr
+
3
>
xmlbuf
->
end
)
{
xmlbuf
->
ptr
=
xmlbuf
->
end
;
return
FALSE
;
}
xmlbuf
->
ptr
=
ptr
+
3
;
}
else
break
;
}
xmlbuf
->
ptr
=
++
ptr
;
xmlbuf
->
ptr
=
ptr
;
while
(
ptr
<
xmlbuf
->
end
&&
!
isxmlspace
(
*
ptr
)
&&
*
ptr
!=
'>'
)
while
(
ptr
<
xmlbuf
->
end
&&
!
isxmlspace
(
*
ptr
)
&&
*
ptr
!=
'>'
)
ptr
++
;
ptr
++
;
...
...
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