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
54326116
Commit
54326116
authored
Oct 05, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 05, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Use provided qualified name length while writing end element tag.
parent
cec8e0d7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
8 deletions
+19
-8
mxwriter.c
dlls/msxml3/mxwriter.c
+7
-7
saxreader.c
dlls/msxml3/tests/saxreader.c
+12
-1
No files found.
dlls/msxml3/mxwriter.c
View file @
54326116
...
@@ -822,28 +822,28 @@ static HRESULT WINAPI mxwriter_saxcontent_endElement(
...
@@ -822,28 +822,28 @@ static HRESULT WINAPI mxwriter_saxcontent_endElement(
int
nQName
)
int
nQName
)
{
{
mxwriter
*
This
=
impl_from_ISAXContentHandler
(
iface
);
mxwriter
*
This
=
impl_from_ISAXContentHandler
(
iface
);
xmlChar
*
s
;
TRACE
(
"(%p)->(%s
%s %s)
\n
"
,
This
,
debugstr_wn
(
namespaceUri
,
nnamespaceUri
)
,
TRACE
(
"(%p)->(%s
:%d %s:%d %s:%d)
\n
"
,
This
,
debugstr_wn
(
namespaceUri
,
nnamespaceUri
),
nnamespaceUri
,
debugstr_wn
(
local_name
,
nlocal_name
),
debugstr_wn
(
QName
,
nQName
)
);
debugstr_wn
(
local_name
,
nlocal_name
),
nlocal_name
,
debugstr_wn
(
QName
,
nQName
),
nQName
);
if
((
!
namespaceUri
||
!
local_name
||
!
QName
)
&&
This
->
class_version
!=
MSXML6
)
if
((
!
namespaceUri
||
!
local_name
||
!
QName
)
&&
This
->
class_version
!=
MSXML6
)
return
E_INVALIDARG
;
return
E_INVALIDARG
;
s
=
xmlchar_from_wchar
(
QName
);
if
(
This
->
element
&&
QName
&&
!
strncmpW
(
This
->
element
,
QName
,
nQName
))
if
(
This
->
element
&&
QName
&&
!
strcmpW
(
This
->
element
,
QName
))
{
{
xmlOutputBufferWriteString
(
This
->
buffer
,
"/>"
);
xmlOutputBufferWriteString
(
This
->
buffer
,
"/>"
);
}
}
else
else
{
{
xmlChar
*
s
=
xmlchar_from_wcharn
(
QName
,
nQName
);
xmlOutputBufferWriteString
(
This
->
buffer
,
"</"
);
xmlOutputBufferWriteString
(
This
->
buffer
,
"</"
);
xmlOutputBufferWriteString
(
This
->
buffer
,
(
char
*
)
s
);
xmlOutputBufferWriteString
(
This
->
buffer
,
(
char
*
)
s
);
xmlOutputBufferWriteString
(
This
->
buffer
,
">"
);
xmlOutputBufferWriteString
(
This
->
buffer
,
">"
);
heap_free
(
s
);
}
}
heap_free
(
s
);
set_element_name
(
This
,
NULL
,
0
);
set_element_name
(
This
,
NULL
,
0
);
return
S_OK
;
return
S_OK
;
...
...
dlls/msxml3/tests/saxreader.c
View file @
54326116
...
@@ -2069,9 +2069,20 @@ static void test_mxwriter_startendelement(void)
...
@@ -2069,9 +2069,20 @@ static void test_mxwriter_startendelement(void)
ok
(
!
lstrcmpW
(
_bstr_
(
"<abc>"
),
V_BSTR
(
&
dest
)),
"got wrong content %s
\n
"
,
wine_dbgstr_w
(
V_BSTR
(
&
dest
)));
ok
(
!
lstrcmpW
(
_bstr_
(
"<abc>"
),
V_BSTR
(
&
dest
)),
"got wrong content %s
\n
"
,
wine_dbgstr_w
(
V_BSTR
(
&
dest
)));
VariantClear
(
&
dest
);
VariantClear
(
&
dest
);
ISAXContentHandler_endDocument
(
content
);
IMXWriter_flush
(
writer
);
hr
=
ISAXContentHandler_endElement
(
content
,
_bstr_
(
""
),
0
,
_bstr_
(
""
),
0
,
_bstr_
(
"abdcdef"
),
3
);
EXPECT_HR
(
hr
,
S_OK
);
V_VT
(
&
dest
)
=
VT_EMPTY
;
hr
=
IMXWriter_get_output
(
writer
,
&
dest
);
EXPECT_HR
(
hr
,
S_OK
);
ok
(
V_VT
(
&
dest
)
==
VT_BSTR
,
"got %d
\n
"
,
V_VT
(
&
dest
));
ok
(
!
lstrcmpW
(
_bstr_
(
"<abc></abd>"
),
V_BSTR
(
&
dest
)),
"got wrong content %s
\n
"
,
wine_dbgstr_w
(
V_BSTR
(
&
dest
)));
VariantClear
(
&
dest
);
ISAXContentHandler_Release
(
content
);
ISAXContentHandler_Release
(
content
);
IMXWriter_Release
(
writer
);
IMXWriter_Release
(
writer
);
free_bstrs
();
free_bstrs
();
}
}
...
...
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