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
142ef8a7
Commit
142ef8a7
authored
Sep 26, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scrobj: Ignore processing instructions in scriptlet files.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
aa503dac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
scrobj.c
dlls/scrobj/scrobj.c
+12
-2
scrobj.wsc
dlls/scrobj/tests/scrobj.wsc
+3
-1
No files found.
dlls/scrobj/scrobj.c
View file @
142ef8a7
...
...
@@ -1261,8 +1261,18 @@ static const char *debugstr_xml_name(struct scriptlet_factory *factory)
static
HRESULT
next_xml_node
(
struct
scriptlet_factory
*
factory
,
XmlNodeType
*
node_type
)
{
HRESULT
hres
;
do
hres
=
IXmlReader_Read
(
factory
->
xml_reader
,
node_type
);
while
(
hres
==
S_OK
&&
*
node_type
==
XmlNodeType_Whitespace
);
for
(;;)
{
hres
=
IXmlReader_Read
(
factory
->
xml_reader
,
node_type
);
if
(
FAILED
(
hres
))
break
;
if
(
*
node_type
==
XmlNodeType_Whitespace
)
continue
;
if
(
*
node_type
==
XmlNodeType_ProcessingInstruction
)
{
FIXME
(
"Ignoring processing instruction
\n
"
);
continue
;
}
break
;
}
return
hres
;
}
...
...
dlls/scrobj/tests/scrobj.wsc
View file @
142ef8a7
...
...
@@ -4,7 +4,9 @@
</registration>
<public>
<method
name=
"vbAddOne"
>
<PARAMETER
name=
"n"
></PARAMETER>
<PARAMETER
name=
"n"
>
<?pi xxx="yyy"?>
</PARAMETER>
</method>
<method
name=
"jsAddTwo"
/>
<method
name=
"wtTest"
>
...
...
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