forked from reactos/reactos
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WINESYNC] d3d9: Avoid implicit cast of interface pointer.
wine-staging patch by Sebastian Lackner <[email protected]>
- Loading branch information
1 parent
db9e40c
commit 5431a8b
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
sdk/tools/winesync/d3d9_staging/0001-d3d9__Avoid_implicit_cast_of_interface_pointer.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
diff --git a/dll/directx/wine/d3d9/texture.c b/dll/directx/wine/d3d9/texture.c | ||
index ae754b5..5c30e4c 100644 | ||
--- a/dll/directx/wine/d3d9/texture.c | ||
+++ b/dll/directx/wine/d3d9/texture.c | ||
@@ -24,17 +24,17 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d9); | ||
|
||
static inline struct d3d9_texture *impl_from_IDirect3DTexture9(IDirect3DTexture9 *iface) | ||
{ | ||
- return CONTAINING_RECORD(iface, struct d3d9_texture, IDirect3DBaseTexture9_iface); | ||
+ return CONTAINING_RECORD((IDirect3DBaseTexture9 *)iface, struct d3d9_texture, IDirect3DBaseTexture9_iface); | ||
} | ||
|
||
static inline struct d3d9_texture *impl_from_IDirect3DCubeTexture9(IDirect3DCubeTexture9 *iface) | ||
{ | ||
- return CONTAINING_RECORD(iface, struct d3d9_texture, IDirect3DBaseTexture9_iface); | ||
+ return CONTAINING_RECORD((IDirect3DBaseTexture9 *)iface, struct d3d9_texture, IDirect3DBaseTexture9_iface); | ||
} | ||
|
||
static inline struct d3d9_texture *impl_from_IDirect3DVolumeTexture9(IDirect3DVolumeTexture9 *iface) | ||
{ | ||
- return CONTAINING_RECORD(iface, struct d3d9_texture, IDirect3DBaseTexture9_iface); | ||
+ return CONTAINING_RECORD((IDirect3DBaseTexture9 *)iface, struct d3d9_texture, IDirect3DBaseTexture9_iface); | ||
} | ||
|
||
static void STDMETHODCALLTYPE srv_wined3d_object_destroyed(void *parent) |