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
88923cd6
Commit
88923cd6
authored
Jan 01, 2014
by
Marcus Meissner
Committed by
Alexandre Julliard
Jan 01, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Avoid double free of str (Coverity).
parent
84a51f64
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
domdoc.c
dlls/msxml3/tests/domdoc.c
+1
-5
No files found.
dlls/msxml3/tests/domdoc.c
View file @
88923cd6
...
@@ -11014,6 +11014,7 @@ static void test_xmlns_attribute(void)
...
@@ -11014,6 +11014,7 @@ static void test_xmlns_attribute(void)
IXMLDOMAttribute
*
pAttribute
;
IXMLDOMAttribute
*
pAttribute
;
IXMLDOMElement
*
elem
;
IXMLDOMElement
*
elem
;
HRESULT
hr
;
HRESULT
hr
;
VARIANT
v
;
doc
=
create_document
(
&
IID_IXMLDOMDocument
);
doc
=
create_document
(
&
IID_IXMLDOMDocument
);
...
@@ -11026,9 +11027,6 @@ static void test_xmlns_attribute(void)
...
@@ -11026,9 +11027,6 @@ static void test_xmlns_attribute(void)
str
=
SysAllocString
(
szAttribute
);
str
=
SysAllocString
(
szAttribute
);
hr
=
IXMLDOMDocument_createAttribute
(
doc
,
_bstr_
(
"xmlns:dt"
),
&
pAttribute
);
hr
=
IXMLDOMDocument_createAttribute
(
doc
,
_bstr_
(
"xmlns:dt"
),
&
pAttribute
);
ok
(
hr
==
S_OK
,
"returns %08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"returns %08x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
{
VARIANT
v
;
V_VT
(
&
v
)
=
VT_BSTR
;
V_VT
(
&
v
)
=
VT_BSTR
;
V_BSTR
(
&
v
)
=
_bstr_
(
"urn:schemas-microsoft-com:datatypes"
);
V_BSTR
(
&
v
)
=
_bstr_
(
"urn:schemas-microsoft-com:datatypes"
);
...
@@ -11047,11 +11045,9 @@ static void test_xmlns_attribute(void)
...
@@ -11047,11 +11045,9 @@ static void test_xmlns_attribute(void)
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
todo_wine
ok
(
lstrcmpW
(
str
,
_bstr_
(
"<Testing xmlns:dt=
\"
urn:schemas-microsoft-com:datatypes
\"
dt:dt=
\"
bin.base64
\"
/>"
))
==
0
,
todo_wine
ok
(
lstrcmpW
(
str
,
_bstr_
(
"<Testing xmlns:dt=
\"
urn:schemas-microsoft-com:datatypes
\"
dt:dt=
\"
bin.base64
\"
/>"
))
==
0
,
"got %s
\n
"
,
wine_dbgstr_w
(
str
));
"got %s
\n
"
,
wine_dbgstr_w
(
str
));
SysFreeString
(
str
);
IXMLDOMElement_Release
(
elem
);
IXMLDOMElement_Release
(
elem
);
IXMLDOMAttribute_Release
(
pAttribute
);
IXMLDOMAttribute_Release
(
pAttribute
);
}
SysFreeString
(
str
);
SysFreeString
(
str
);
...
...
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