d3d: Remove AddRef from IWineD3DDevice_GetStreamSource.

This commit is contained in:
Markus Amsler 2006-11-20 10:48:03 +01:00 committed by Alexandre Julliard
parent 274df6ef88
commit 16b1e046d8
3 changed files with 0 additions and 3 deletions

View File

@ -1487,7 +1487,6 @@ static HRESULT WINAPI IDirect3DDevice8Impl_GetStreamSource(LPDIRECT3DDEVICE8 ifa
rc = IWineD3DDevice_GetStreamSource(This->WineD3DDevice, StreamNumber, (IWineD3DVertexBuffer **)&retStream, 0 /* Offset in bytes */, pStride);
if (rc == D3D_OK && NULL != retStream) {
IWineD3DVertexBuffer_GetParent(retStream, (IUnknown **)pStream);
IWineD3DVertexBuffer_Release(retStream);
}else{
FIXME("Call to GetStreamSource failed %p\n", pStride);
*pStream = NULL;

View File

@ -789,7 +789,6 @@ HRESULT WINAPI IDirect3DDevice9Impl_GetStreamSource(LPDIRECT3DDEVICE9 iface, U
rc = IWineD3DDevice_GetStreamSource(This->WineD3DDevice, StreamNumber, (IWineD3DVertexBuffer **)&retStream, OffsetInBytes, pStride);
if (rc == D3D_OK && NULL != retStream) {
IWineD3DVertexBuffer_GetParent(retStream, (IUnknown **)pStream);
IWineD3DVertexBuffer_Release(retStream);
}else{
FIXME("Call to GetStreamSource failed %p %p\n", OffsetInBytes, pStride);
*pStream = NULL;

View File

@ -2458,7 +2458,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetStreamSource(IWineD3DDevice *iface,
return WINED3DERR_INVALIDCALL;
}
IWineD3DVertexBuffer_AddRef(*pStream); /* We have created a new reference to the VB */
return WINED3D_OK;
}