wined3d: Handle NULL ptrs (Coverity).

This commit is contained in:
Marcus Meissner 2009-11-23 22:35:15 +01:00 committed by Alexandre Julliard
parent 000e1e0ce0
commit a7e599db45

View File

@ -187,11 +187,13 @@ static HRESULT WINAPI IWineD3DVolumeImpl_GetContainer(IWineD3DVolume *iface, REF
if (!ppContainer) {
ERR("Called without a valid ppContainer.\n");
return E_FAIL;
}
/* Although surfaces can be standalone, volumes can't */
if (!This->container) {
ERR("Volume without an container. Should not happen.\n");
return E_FAIL;
}
TRACE("Relaying to QueryInterface\n");