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
68f3d21f
Commit
68f3d21f
authored
Aug 08, 2011
by
Ričardas Barkauskas
Committed by
Alexandre Julliard
Aug 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Print IDirectDrawGammaControl interface reference count for easier debugging.
parent
5c8ad267
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
main.c
dlls/ddraw/main.c
+5
-3
No files found.
dlls/ddraw/main.c
View file @
68f3d21f
...
...
@@ -752,7 +752,7 @@ DestroyCallback(IDirectDrawSurface7 *surf,
void
*
context
)
{
IDirectDrawSurfaceImpl
*
Impl
=
impl_from_IDirectDrawSurface7
(
surf
);
ULONG
ref7
,
ref4
,
ref3
,
ref2
,
ref1
,
iface_count
;
ULONG
ref7
,
ref4
,
ref3
,
ref2
,
ref1
,
gamma_count
,
iface_count
;
ref7
=
IDirectDrawSurface7_Release
(
surf
);
/* For the EnumSurfaces */
IDirectDrawSurface4_AddRef
(
&
Impl
->
IDirectDrawSurface4_iface
);
...
...
@@ -763,8 +763,10 @@ DestroyCallback(IDirectDrawSurface7 *surf,
ref2
=
IDirectDrawSurface2_Release
(
&
Impl
->
IDirectDrawSurface2_iface
);
IDirectDrawSurface_AddRef
(
&
Impl
->
IDirectDrawSurface_iface
);
ref1
=
IDirectDrawSurface_Release
(
&
Impl
->
IDirectDrawSurface_iface
);
WARN
(
"Surface %p has an reference counts of 7: %u 4: %u 3: %u 2: %u 1: %u
\n
"
,
Impl
,
ref7
,
ref4
,
ref3
,
ref2
,
ref1
);
IDirectDrawGammaControl_AddRef
(
&
Impl
->
IDirectDrawGammaControl_iface
);
gamma_count
=
IDirectDrawGammaControl_Release
(
&
Impl
->
IDirectDrawGammaControl_iface
);
WARN
(
"Surface %p has an reference counts of 7: %u 4: %u 3: %u 2: %u 1: %u gamma: %u
\n
"
,
Impl
,
ref7
,
ref4
,
ref3
,
ref2
,
ref1
,
gamma_count
);
/* Skip surfaces which are attached somewhere or which are
* part of a complex compound. They will get released when destroying
...
...
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