d3d9: Use D3DQUERYTYPE instead of HRESULT in IDirect3DQuery9Impl_GetType().

This commit is contained in:
Adam Martinson 2011-05-04 15:36:26 -05:00 committed by Alexandre Julliard
parent 86b0c6bd7b
commit 62b5d12c0e
1 changed files with 3 additions and 3 deletions

View File

@ -95,15 +95,15 @@ static HRESULT WINAPI IDirect3DQuery9Impl_GetDevice(IDirect3DQuery9 *iface,
static D3DQUERYTYPE WINAPI IDirect3DQuery9Impl_GetType(IDirect3DQuery9 *iface)
{
IDirect3DQuery9Impl *This = impl_from_IDirect3DQuery9(iface);
HRESULT hr;
D3DQUERYTYPE type;
TRACE("iface %p.\n", iface);
wined3d_mutex_lock();
hr = wined3d_query_get_type(This->wineD3DQuery);
type = wined3d_query_get_type(This->wineD3DQuery);
wined3d_mutex_unlock();
return hr;
return type;
}
static DWORD WINAPI IDirect3DQuery9Impl_GetDataSize(IDirect3DQuery9 *iface)