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
026c8617
Commit
026c8617
authored
Apr 16, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 16, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3/tests: Fix accessing released intreface pointer.
parent
39730102
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
domdoc.c
dlls/msxml3/tests/domdoc.c
+9
-8
No files found.
dlls/msxml3/tests/domdoc.c
View file @
026c8617
...
...
@@ -376,9 +376,10 @@ static void _expect_no_children(IXMLDOMNode *node, int line)
#define EXPECT_REF(node,ref) _expect_ref((IUnknown*)node, ref, __LINE__)
static
void
_expect_ref
(
IUnknown
*
obj
,
ULONG
ref
,
int
line
)
{
ULONG
rc
=
IUnknown_AddRef
(
obj
);
IUnknown_Release
(
obj
);
ok_
(
__FILE__
,
line
)(
rc
-
1
==
ref
,
"expected refcount %d, got %d
\n
"
,
ref
,
rc
-
1
);
ULONG
rc
;
IUnknown_AddRef
(
obj
);
rc
=
IUnknown_Release
(
obj
);
ok_
(
__FILE__
,
line
)(
rc
==
ref
,
"expected refcount %d, got %d
\n
"
,
ref
,
rc
);
}
#define EXPECT_LIST_LEN(list,len) _expect_list_len(list, len, __LINE__)
...
...
@@ -2493,18 +2494,18 @@ todo_wine {
EXPECT_REF
(
elem2
,
2
);
todo_wine
ok
(
unk
==
unk2
,
"got %p and %p
\n
"
,
unk
,
unk2
);
IUnknown_Release
(
unk
);
IUnknown_Release
(
unk2
);
/* IUnknown refcount is not affected by node refcount */
todo_wine
EXPECT_REF
(
unk2
,
3
);
todo_wine
EXPECT_REF
(
unk2
,
4
);
IXMLDOMElement_AddRef
(
elem2
);
todo_wine
EXPECT_REF
(
unk2
,
3
);
todo_wine
EXPECT_REF
(
unk2
,
4
);
IXMLDOMElement_Release
(
elem2
);
IXMLDOMElement_Release
(
elem2
);
todo_wine
EXPECT_REF
(
unk2
,
2
);
todo_wine
EXPECT_REF
(
unk2
,
3
);
IUnknown_Release
(
unk2
);
hr
=
IXMLDOMElement_get_childNodes
(
element
,
&
node_list
);
EXPECT_HR
(
hr
,
S_OK
);
...
...
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