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
a59347fc
Commit
a59347fc
authored
Jan 19, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 19, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: COM cleanup for the IDirectDraw iface.
parent
497944f2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
ddraw.c
dlls/ddraw/ddraw.c
+0
-0
ddraw_private.h
dlls/ddraw/ddraw_private.h
+1
-1
device.c
dlls/ddraw/device.c
+1
-1
main.c
dlls/ddraw/main.c
+2
-2
surface.c
dlls/ddraw/surface.c
+1
-1
No files found.
dlls/ddraw/ddraw.c
View file @
a59347fc
This diff is collapsed.
Click to expand it.
dlls/ddraw/ddraw_private.h
View file @
a59347fc
...
...
@@ -100,7 +100,7 @@ struct IDirectDrawImpl
const
IDirectDraw4Vtbl
*
IDirectDraw4_vtbl
;
const
IDirectDraw3Vtbl
*
IDirectDraw3_vtbl
;
const
IDirectDraw2Vtbl
*
IDirectDraw2_vtbl
;
const
IDirectDrawVtbl
*
IDirectDraw_vtbl
;
IDirectDraw
IDirectDraw_iface
;
IDirect3D7
IDirect3D7_iface
;
IDirect3D3
IDirect3D3_iface
;
IDirect3D2
IDirect3D2_iface
;
...
...
dlls/ddraw/device.c
View file @
a59347fc
...
...
@@ -134,7 +134,7 @@ IDirect3DDeviceImpl_7_QueryInterface(IDirect3DDevice7 *iface,
}
else
if
(
IsEqualGUID
(
&
IID_IDirectDraw
,
refiid
)
)
{
*
obj
=
&
This
->
ddraw
->
IDirectDraw_
vtbl
;
*
obj
=
&
This
->
ddraw
->
IDirectDraw_
iface
;
TRACE
(
"(%p) Returning IDirectDraw interface at %p
\n
"
,
This
,
*
obj
);
}
...
...
dlls/ddraw/main.c
View file @
a59347fc
...
...
@@ -937,7 +937,7 @@ DllMain(HINSTANCE hInstDLL,
WARN
(
"DDraw %p has a refcount of %d
\n
"
,
ddraw
,
ddraw
->
ref7
+
ddraw
->
ref4
+
ddraw
->
ref3
+
ddraw
->
ref2
+
ddraw
->
ref1
);
/* Add references to each interface to avoid freeing them unexpectedly */
IDirectDraw_AddRef
(
(
IDirectDraw
*
)
&
ddraw
->
IDirectDraw_vtbl
);
IDirectDraw_AddRef
(
&
ddraw
->
IDirectDraw_iface
);
IDirectDraw2_AddRef
((
IDirectDraw2
*
)
&
ddraw
->
IDirectDraw2_vtbl
);
IDirectDraw3_AddRef
((
IDirectDraw3
*
)
&
ddraw
->
IDirectDraw3_vtbl
);
IDirectDraw4_AddRef
((
IDirectDraw4
*
)
&
ddraw
->
IDirectDraw4_vtbl
);
...
...
@@ -973,7 +973,7 @@ DllMain(HINSTANCE hInstDLL,
/* Release all hanging references to destroy the objects. This
* restores the screen mode too
*/
while
(
IDirectDraw_Release
(
(
IDirectDraw
*
)
&
ddraw
->
IDirectDraw_vtbl
));
while
(
IDirectDraw_Release
(
&
ddraw
->
IDirectDraw_iface
));
while
(
IDirectDraw2_Release
((
IDirectDraw2
*
)
&
ddraw
->
IDirectDraw2_vtbl
));
while
(
IDirectDraw3_Release
((
IDirectDraw3
*
)
&
ddraw
->
IDirectDraw3_vtbl
));
while
(
IDirectDraw4_Release
((
IDirectDraw4
*
)
&
ddraw
->
IDirectDraw4_vtbl
));
...
...
dlls/ddraw/surface.c
View file @
a59347fc
...
...
@@ -2266,7 +2266,7 @@ static HRESULT WINAPI ddraw_surface7_GetDDInterface(IDirectDrawSurface7 *iface,
break
;
case
1
:
*
DD
=
&
This
->
ddraw
->
IDirectDraw_
vtbl
;
*
DD
=
&
This
->
ddraw
->
IDirectDraw_
iface
;
break
;
}
...
...
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