diff --git a/dlls/d3d9/surface.c b/dlls/d3d9/surface.c index 660153029ac..4ec6104b3f0 100644 --- a/dlls/d3d9/surface.c +++ b/dlls/d3d9/surface.c @@ -232,10 +232,6 @@ static HRESULT WINAPI IDirect3DSurface9Impl_GetContainer(LPDIRECT3DSURFACE9 ifac if (!This->container) return E_NOINTERFACE; - if (!ppContainer) { - ERR("Called without a valid ppContainer\n"); - } - res = IUnknown_QueryInterface(This->container, riid, ppContainer); TRACE("Returning ppContainer %p, *ppContainer %p\n", ppContainer, *ppContainer); diff --git a/dlls/d3d9/volume.c b/dlls/d3d9/volume.c index 5206187634a..643238a098d 100644 --- a/dlls/d3d9/volume.c +++ b/dlls/d3d9/volume.c @@ -169,10 +169,6 @@ static HRESULT WINAPI IDirect3DVolume9Impl_GetContainer(LPDIRECT3DVOLUME9 iface, if (!This->container) return E_NOINTERFACE; - if (!ppContainer) { - ERR("Called without a valid ppContainer.\n"); - } - res = IUnknown_QueryInterface(This->container, riid, ppContainer); TRACE("Returning ppContainer %p, *ppContainer %p\n", ppContainer, *ppContainer);