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
b971c55a
Commit
b971c55a
authored
Oct 25, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Oct 25, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime/tests: Avoid checking message segment state reference count.
parent
3e31e29d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
dmime.c
dlls/dmime/tests/dmime.c
+6
-6
No files found.
dlls/dmime/tests/dmime.c
View file @
b971c55a
...
...
@@ -38,8 +38,8 @@ static ULONG get_refcount(void *iface)
return
IUnknown_Release
(
unknown
);
}
#define check_interface(a, b, c) check_interface_(__LINE__, a, b, c)
static
void
check_interface_
(
unsigned
int
line
,
void
*
iface_ptr
,
REFIID
iid
,
BOOL
supported
)
#define check_interface(a, b, c) check_interface_(__LINE__, a, b, c
, FALSE
)
static
void
check_interface_
(
unsigned
int
line
,
void
*
iface_ptr
,
REFIID
iid
,
BOOL
supported
,
BOOL
check_refs
)
{
ULONG
expect_ref
=
get_refcount
(
iface_ptr
);
IUnknown
*
iface
=
iface_ptr
;
...
...
@@ -52,10 +52,10 @@ static void check_interface_(unsigned int line, void *iface_ptr, REFIID iid, BOO
if
(
SUCCEEDED
(
hr
))
{
LONG
ref
=
get_refcount
(
unk
);
ok_
(
__FILE__
,
line
)(
ref
==
expect_ref
+
1
,
"got %ld
\n
"
,
ref
);
if
(
check_refs
)
ok_
(
__FILE__
,
line
)(
ref
==
expect_ref
+
1
,
"got %ld
\n
"
,
ref
);
IUnknown_Release
(
unk
);
ref
=
get_refcount
(
iface_ptr
);
ok_
(
__FILE__
,
line
)(
ref
==
expect_ref
,
"got %ld
\n
"
,
ref
);
if
(
check_refs
)
ok_
(
__FILE__
,
line
)(
ref
==
expect_ref
,
"got %ld
\n
"
,
ref
);
}
}
...
...
@@ -3024,8 +3024,8 @@ static void check_dmus_notification_pmsg_(int line, DMUS_NOTIFICATION_PMSG *msg,
ok_
(
__FILE__
,
line
)(
!
msg
->
punkUser
,
"got punkUser %p
\n
"
,
msg
->
punkUser
);
else
{
check_interface_
(
line
,
msg
->
punkUser
,
&
IID_IDirectMusicSegmentState
,
TRUE
);
check_interface_
(
line
,
msg
->
punkUser
,
&
IID_IDirectMusicSegmentState8
,
TRUE
);
check_interface_
(
line
,
msg
->
punkUser
,
&
IID_IDirectMusicSegmentState
,
TRUE
,
FALSE
);
check_interface_
(
line
,
msg
->
punkUser
,
&
IID_IDirectMusicSegmentState8
,
TRUE
,
FALSE
);
}
}
...
...
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