Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
53c4b59a
Commit
53c4b59a
authored
Mar 22, 2016
by
Sebastian Lackner
Committed by
Vitaly Lipatov
Jul 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Avoid implicit cast of interface pointer.
parent
e28e1d40
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
viewport.c
dlls/ddraw/viewport.c
+2
-2
No files found.
dlls/ddraw/viewport.c
View file @
53c4b59a
...
...
@@ -1216,7 +1216,7 @@ struct d3d_viewport *unsafe_impl_from_IDirect3DViewport2(IDirect3DViewport2 *ifa
/* IDirect3DViewport and IDirect3DViewport3 use the same iface. */
if
(
!
iface
)
return
NULL
;
assert
(
iface
->
lpVtbl
==
(
IDirect3DViewport2Vtbl
*
)
&
d3d_viewport_vtbl
);
return
CONTAINING_RECORD
(
iface
,
struct
d3d_viewport
,
IDirect3DViewport3_iface
);
return
CONTAINING_RECORD
(
(
IDirect3DViewport3
*
)
iface
,
struct
d3d_viewport
,
IDirect3DViewport3_iface
);
}
struct
d3d_viewport
*
unsafe_impl_from_IDirect3DViewport
(
IDirect3DViewport
*
iface
)
...
...
@@ -1224,7 +1224,7 @@ struct d3d_viewport *unsafe_impl_from_IDirect3DViewport(IDirect3DViewport *iface
/* IDirect3DViewport and IDirect3DViewport3 use the same iface. */
if
(
!
iface
)
return
NULL
;
assert
(
iface
->
lpVtbl
==
(
IDirect3DViewportVtbl
*
)
&
d3d_viewport_vtbl
);
return
CONTAINING_RECORD
(
iface
,
struct
d3d_viewport
,
IDirect3DViewport3_iface
);
return
CONTAINING_RECORD
(
(
IDirect3DViewport3
*
)
iface
,
struct
d3d_viewport
,
IDirect3DViewport3_iface
);
}
void
d3d_viewport_init
(
struct
d3d_viewport
*
viewport
,
struct
ddraw
*
ddraw
)
...
...
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