ddrawex: Remove superfluous pointer casts.
This commit is contained in:
parent
5ee7a104c9
commit
8b5a5e532b
|
@ -604,7 +604,7 @@ struct enummodes_ctx
|
|||
static HRESULT WINAPI
|
||||
enum_modes_cb2(DDSURFACEDESC2 *ddsd2, void *vctx)
|
||||
{
|
||||
struct enummodes_ctx *ctx = (struct enummodes_ctx *) vctx;
|
||||
struct enummodes_ctx *ctx = vctx;
|
||||
DDSURFACEDESC ddsd;
|
||||
|
||||
DDSD2_to_DDSD(ddsd2, &ddsd);
|
||||
|
@ -662,7 +662,7 @@ struct enumsurfaces4_ctx
|
|||
static HRESULT WINAPI
|
||||
enum_surfaces_wrapper(IDirectDrawSurface4 *surf4, DDSURFACEDESC2 *ddsd2, void *vctx)
|
||||
{
|
||||
struct enumsurfaces4_ctx *ctx = (struct enumsurfaces4_ctx *) vctx;
|
||||
struct enumsurfaces4_ctx *ctx = vctx;
|
||||
IDirectDrawSurface4 *outer = dds_get_outer(surf4);
|
||||
IDirectDrawSurface4_AddRef(outer);
|
||||
IDirectDrawSurface4_Release(surf4);
|
||||
|
@ -695,7 +695,7 @@ struct enumsurfaces_ctx
|
|||
static HRESULT WINAPI
|
||||
enum_surfaces_cb2(IDirectDrawSurface4 *surf4, DDSURFACEDESC2 *ddsd2, void *vctx)
|
||||
{
|
||||
struct enumsurfaces_ctx *ctx = (struct enumsurfaces_ctx *) vctx;
|
||||
struct enumsurfaces_ctx *ctx = vctx;
|
||||
IDirectDrawSurface *surf1;
|
||||
DDSURFACEDESC ddsd;
|
||||
|
||||
|
|
|
@ -290,7 +290,7 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
|
|||
|
||||
factory->pfnCreateInstance = CreateDirectDrawFactory;
|
||||
|
||||
*ppv = (IClassFactory*) factory;
|
||||
*ppv = factory;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
|
|
@ -317,7 +317,7 @@ struct enumsurfaces_wrap
|
|||
static HRESULT WINAPI
|
||||
enumsurfaces_wrap_cb(IDirectDrawSurface4 *surf, DDSURFACEDESC2 *desc, void *vctx)
|
||||
{
|
||||
struct enumsurfaces_wrap *ctx = (struct enumsurfaces_wrap *) vctx;
|
||||
struct enumsurfaces_wrap *ctx = vctx;
|
||||
IDirectDrawSurface4 *outer = dds_get_outer(surf);
|
||||
|
||||
TRACE("Returning outer surface %p for inner surface %p\n", outer, surf);
|
||||
|
@ -350,7 +350,7 @@ static HRESULT WINAPI
|
|||
enumsurfaces_thunk_cb(IDirectDrawSurface4 *surf, DDSURFACEDESC2 *desc2, void *vctx)
|
||||
{
|
||||
IDirectDrawSurfaceImpl *This = impl_from_dds4(surf);
|
||||
struct enumsurfaces_thunk *ctx = (struct enumsurfaces_thunk *) vctx;
|
||||
struct enumsurfaces_thunk *ctx = vctx;
|
||||
DDSURFACEDESC desc;
|
||||
|
||||
TRACE("Thunking back to IDirectDrawSurface3\n");
|
||||
|
|
Loading…
Reference in New Issue