d3d9: Use D3DQUERYTYPE instead of HRESULT in IDirect3DQuery9Impl_GetType().
This commit is contained in:
parent
86b0c6bd7b
commit
62b5d12c0e
@ -95,15 +95,15 @@ static HRESULT WINAPI IDirect3DQuery9Impl_GetDevice(IDirect3DQuery9 *iface,
|
|||||||
static D3DQUERYTYPE WINAPI IDirect3DQuery9Impl_GetType(IDirect3DQuery9 *iface)
|
static D3DQUERYTYPE WINAPI IDirect3DQuery9Impl_GetType(IDirect3DQuery9 *iface)
|
||||||
{
|
{
|
||||||
IDirect3DQuery9Impl *This = impl_from_IDirect3DQuery9(iface);
|
IDirect3DQuery9Impl *This = impl_from_IDirect3DQuery9(iface);
|
||||||
HRESULT hr;
|
D3DQUERYTYPE type;
|
||||||
|
|
||||||
TRACE("iface %p.\n", iface);
|
TRACE("iface %p.\n", iface);
|
||||||
|
|
||||||
wined3d_mutex_lock();
|
wined3d_mutex_lock();
|
||||||
hr = wined3d_query_get_type(This->wineD3DQuery);
|
type = wined3d_query_get_type(This->wineD3DQuery);
|
||||||
wined3d_mutex_unlock();
|
wined3d_mutex_unlock();
|
||||||
|
|
||||||
return hr;
|
return type;
|
||||||
}
|
}
|
||||||
|
|
||||||
static DWORD WINAPI IDirect3DQuery9Impl_GetDataSize(IDirect3DQuery9 *iface)
|
static DWORD WINAPI IDirect3DQuery9Impl_GetDataSize(IDirect3DQuery9 *iface)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user