Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9378c418
Commit
9378c418
authored
Mar 29, 2013
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Apr 03, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dplayx: Add a separate refcount for IDirectPlay2.
parent
cf894d4c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
dplay.c
dlls/dplayx/dplay.c
+0
-0
dplay_global.h
dlls/dplayx/dplay_global.h
+2
-1
dplayx.c
dlls/dplayx/tests/dplayx.c
+1
-1
No files found.
dlls/dplayx/dplay.c
View file @
9378c418
This diff is collapsed.
Click to expand it.
dlls/dplayx/dplay_global.h
View file @
9378c418
...
...
@@ -183,10 +183,11 @@ typedef struct tagDirectPlay2Data
typedef
struct
IDirectPlayImpl
{
IDirectPlay2A
IDirectPlay2A_iface
;
IDirectPlay2
IDirectPlay2_iface
;
IDirectPlay4A
IDirectPlay4A_iface
;
IDirectPlay4
IDirectPlay4_iface
;
LONG
numIfaces
;
/* "in use interfaces" refcount */
LONG
ref2A
,
ref4A
,
ref4
;
LONG
ref2A
,
ref
2
,
ref
4A
,
ref4
;
CRITICAL_SECTION
lock
;
DirectPlay2Data
*
dp2
;
}
IDirectPlayImpl
;
...
...
dlls/dplayx/tests/dplayx.c
View file @
9378c418
...
...
@@ -6405,7 +6405,7 @@ static void test_COM(void)
hr
=
IDirectPlayX_QueryInterface
(
dp4
,
&
IID_IDirectPlay2
,
(
void
**
)
&
dp2
);
ok
(
hr
==
S_OK
,
"QueryInterface for IID_IDirectPlay2 failed: %08x
\n
"
,
hr
);
refcount
=
IDirectPlay2_AddRef
(
dp2
);
todo_wine
ok
(
refcount
==
2
,
"refcount == %u, expected 2
\n
"
,
refcount
);
ok
(
refcount
==
2
,
"refcount == %u, expected 2
\n
"
,
refcount
);
IDirectPlay2_Release
(
dp2
);
hr
=
IDirectPlayX_QueryInterface
(
dp4
,
&
IID_IDirectPlay3A
,
(
void
**
)
&
dp3A
);
...
...
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