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
cf894d4c
Commit
cf894d4c
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 IDirectPlay2A.
parent
f546609d
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 @
cf894d4c
This diff is collapsed.
Click to expand it.
dlls/dplayx/dplay_global.h
View file @
cf894d4c
...
...
@@ -182,10 +182,11 @@ typedef struct tagDirectPlay2Data
typedef
struct
IDirectPlayImpl
{
IDirectPlay2A
IDirectPlay2A_iface
;
IDirectPlay4A
IDirectPlay4A_iface
;
IDirectPlay4
IDirectPlay4_iface
;
LONG
numIfaces
;
/* "in use interfaces" refcount */
LONG
ref4A
,
ref4
;
LONG
ref
2A
,
ref
4A
,
ref4
;
CRITICAL_SECTION
lock
;
DirectPlay2Data
*
dp2
;
}
IDirectPlayImpl
;
...
...
dlls/dplayx/tests/dplayx.c
View file @
cf894d4c
...
...
@@ -6411,7 +6411,7 @@ static void test_COM(void)
hr
=
IDirectPlayX_QueryInterface
(
dp4
,
&
IID_IDirectPlay3A
,
(
void
**
)
&
dp3A
);
ok
(
hr
==
S_OK
,
"QueryInterface for IID_IDirectPlay3A failed: %08x
\n
"
,
hr
);
refcount
=
IDirectPlay3_AddRef
(
dp3A
);
todo_wine
ok
(
refcount
==
2
,
"refcount == %u, expected 2
\n
"
,
refcount
);
ok
(
refcount
==
2
,
"refcount == %u, expected 2
\n
"
,
refcount
);
IDirectPlay3_Release
(
dp3A
);
hr
=
IDirectPlayX_QueryInterface
(
dp4
,
&
IID_IDirectPlay3
,
(
void
**
)
&
dp3
);
...
...
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