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
97451080
Commit
97451080
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 IDirectDraw7 iface.
parent
cd8c18e8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
11 deletions
+11
-11
ddraw.c
dlls/ddraw/ddraw.c
+0
-0
ddraw_private.h
dlls/ddraw/ddraw_private.h
+2
-2
device.c
dlls/ddraw/device.c
+1
-1
main.c
dlls/ddraw/main.c
+6
-6
palette.c
dlls/ddraw/palette.c
+1
-1
surface.c
dlls/ddraw/surface.c
+1
-1
No files found.
dlls/ddraw/ddraw.c
View file @
97451080
This diff is collapsed.
Click to expand it.
dlls/ddraw/ddraw_private.h
View file @
97451080
...
...
@@ -95,8 +95,8 @@ struct FvfToDecl
struct
IDirectDrawImpl
{
/* I
Unknown field
s */
const
IDirectDraw7Vtbl
*
lpVtbl
;
/* I
nterface
s */
IDirectDraw7
IDirectDraw7_iface
;
IDirectDraw4
IDirectDraw4_iface
;
IDirectDraw3
IDirectDraw3_iface
;
IDirectDraw2
IDirectDraw2_iface
;
...
...
dlls/ddraw/device.c
View file @
97451080
...
...
@@ -119,7 +119,7 @@ IDirect3DDeviceImpl_7_QueryInterface(IDirect3DDevice7 *iface,
/* Check DirectDraw Interfacs */
else
if
(
IsEqualGUID
(
&
IID_IDirectDraw7
,
refiid
)
)
{
*
obj
=
This
->
ddraw
;
*
obj
=
&
This
->
ddraw
->
IDirectDraw7_iface
;
TRACE
(
"(%p) Returning IDirectDraw7 interface at %p
\n
"
,
This
,
*
obj
);
}
else
if
(
IsEqualGUID
(
&
IID_IDirectDraw4
,
refiid
)
)
...
...
dlls/ddraw/main.c
View file @
97451080
...
...
@@ -273,8 +273,8 @@ DDRAW_Create(const GUID *guid,
return
hr
;
}
hr
=
IDirectDraw7_QueryInterface
(
(
IDirectDraw7
*
)
This
,
iid
,
DD
);
IDirectDraw7_Release
(
(
IDirectDraw7
*
)
This
);
hr
=
IDirectDraw7_QueryInterface
(
&
This
->
IDirectDraw7_iface
,
iid
,
DD
);
IDirectDraw7_Release
(
&
This
->
IDirectDraw7_iface
);
if
(
SUCCEEDED
(
hr
))
list_add_head
(
&
global_ddraw_list
,
&
This
->
ddraw_list_entry
);
else
WARN
(
"Failed to query interface %s from ddraw object %p.
\n
"
,
debugstr_guid
(
iid
),
This
);
...
...
@@ -941,7 +941,7 @@ DllMain(HINSTANCE hInstDLL,
IDirectDraw2_AddRef
(
&
ddraw
->
IDirectDraw2_iface
);
IDirectDraw3_AddRef
(
&
ddraw
->
IDirectDraw3_iface
);
IDirectDraw4_AddRef
(
&
ddraw
->
IDirectDraw4_iface
);
IDirectDraw7_AddRef
(
(
IDirectDraw7
*
)
ddraw
);
IDirectDraw7_AddRef
(
&
ddraw
->
IDirectDraw7_iface
);
/* Does a D3D device exist? Destroy it
* TODO: Destroy all Vertex buffers, Lights, Materials
...
...
@@ -960,8 +960,8 @@ DllMain(HINSTANCE hInstDLL,
desc
.
dwSize
=
sizeof
(
desc
);
for
(
i
=
0
;
i
<=
1
;
i
++
)
{
hr
=
IDirectDraw7_EnumSurfaces
(
(
IDirectDraw7
*
)
ddraw
,
DDENUMSURFACES_ALL
,
&
desc
,
ddraw
,
DestroyCallback
);
hr
=
IDirectDraw7_EnumSurfaces
(
&
ddraw
->
IDirectDraw7_iface
,
DDENUMSURFACES_ALL
,
&
desc
,
ddraw
,
DestroyCallback
);
if
(
hr
!=
D3D_OK
)
ERR
(
"(%p) EnumSurfaces failed, prepare for trouble
\n
"
,
ddraw
);
}
...
...
@@ -977,7 +977,7 @@ DllMain(HINSTANCE hInstDLL,
while
(
IDirectDraw2_Release
(
&
ddraw
->
IDirectDraw2_iface
));
while
(
IDirectDraw3_Release
(
&
ddraw
->
IDirectDraw3_iface
));
while
(
IDirectDraw4_Release
(
&
ddraw
->
IDirectDraw4_iface
));
while
(
IDirectDraw7_Release
(
(
IDirectDraw7
*
)
ddraw
));
while
(
IDirectDraw7_Release
(
&
ddraw
->
IDirectDraw7_iface
));
}
}
...
...
dlls/ddraw/palette.c
View file @
97451080
...
...
@@ -274,7 +274,7 @@ HRESULT ddraw_palette_init(IDirectDrawPaletteImpl *palette,
return
hr
;
}
palette
->
ifaceToRelease
=
(
IUnknown
*
)
ddraw
;
palette
->
ifaceToRelease
=
(
IUnknown
*
)
&
ddraw
->
IDirectDraw7_iface
;
IUnknown_AddRef
(
palette
->
ifaceToRelease
);
return
DD_OK
;
...
...
dlls/ddraw/surface.c
View file @
97451080
...
...
@@ -2254,7 +2254,7 @@ static HRESULT WINAPI ddraw_surface7_GetDDInterface(IDirectDrawSurface7 *iface,
switch
(
This
->
version
)
{
case
7
:
*
DD
=
This
->
ddraw
;
*
DD
=
&
This
->
ddraw
->
IDirectDraw7_iface
;
break
;
case
4
:
...
...
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