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
cd8c18e8
Commit
cd8c18e8
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 IDirectDraw4 iface.
parent
30a07d83
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 @
cd8c18e8
This diff is collapsed.
Click to expand it.
dlls/ddraw/ddraw_private.h
View file @
cd8c18e8
...
...
@@ -97,7 +97,7 @@ struct IDirectDrawImpl
{
/* IUnknown fields */
const
IDirectDraw7Vtbl
*
lpVtbl
;
const
IDirectDraw4Vtbl
*
IDirectDraw4_vtbl
;
IDirectDraw4
IDirectDraw4_iface
;
IDirectDraw3
IDirectDraw3_iface
;
IDirectDraw2
IDirectDraw2_iface
;
IDirectDraw
IDirectDraw_iface
;
...
...
dlls/ddraw/device.c
View file @
cd8c18e8
...
...
@@ -124,7 +124,7 @@ IDirect3DDeviceImpl_7_QueryInterface(IDirect3DDevice7 *iface,
}
else
if
(
IsEqualGUID
(
&
IID_IDirectDraw4
,
refiid
)
)
{
*
obj
=
&
This
->
ddraw
->
IDirectDraw4_
vtbl
;
*
obj
=
&
This
->
ddraw
->
IDirectDraw4_
iface
;
TRACE
(
"(%p) Returning IDirectDraw4 interface at %p
\n
"
,
This
,
*
obj
);
}
else
if
(
IsEqualGUID
(
&
IID_IDirectDraw2
,
refiid
)
)
...
...
dlls/ddraw/main.c
View file @
cd8c18e8
...
...
@@ -940,7 +940,7 @@ DllMain(HINSTANCE hInstDLL,
IDirectDraw_AddRef
(
&
ddraw
->
IDirectDraw_iface
);
IDirectDraw2_AddRef
(
&
ddraw
->
IDirectDraw2_iface
);
IDirectDraw3_AddRef
(
&
ddraw
->
IDirectDraw3_iface
);
IDirectDraw4_AddRef
(
(
IDirectDraw4
*
)
&
ddraw
->
IDirectDraw4_vtbl
);
IDirectDraw4_AddRef
(
&
ddraw
->
IDirectDraw4_iface
);
IDirectDraw7_AddRef
((
IDirectDraw7
*
)
ddraw
);
/* Does a D3D device exist? Destroy it
...
...
@@ -976,7 +976,7 @@ DllMain(HINSTANCE hInstDLL,
while
(
IDirectDraw_Release
(
&
ddraw
->
IDirectDraw_iface
));
while
(
IDirectDraw2_Release
(
&
ddraw
->
IDirectDraw2_iface
));
while
(
IDirectDraw3_Release
(
&
ddraw
->
IDirectDraw3_iface
));
while
(
IDirectDraw4_Release
(
(
IDirectDraw4
*
)
&
ddraw
->
IDirectDraw4_vtbl
));
while
(
IDirectDraw4_Release
(
&
ddraw
->
IDirectDraw4_iface
));
while
(
IDirectDraw7_Release
((
IDirectDraw7
*
)
ddraw
));
}
}
...
...
dlls/ddraw/surface.c
View file @
cd8c18e8
...
...
@@ -2258,7 +2258,7 @@ static HRESULT WINAPI ddraw_surface7_GetDDInterface(IDirectDrawSurface7 *iface,
break
;
case
4
:
*
DD
=
&
This
->
ddraw
->
IDirectDraw4_
vtbl
;
*
DD
=
&
This
->
ddraw
->
IDirectDraw4_
iface
;
break
;
case
2
:
...
...
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