wined3d: Handle GetData() on event queries that aren't started yet.
This fixes a regression introduced by fb77678e9f
.
This commit is contained in:
parent
e74efb5487
commit
76fdf2c1a5
|
@ -347,6 +347,14 @@ static HRESULT WINAPI IWineD3DEventQueryImpl_GetData(IWineD3DQuery* iface, void
|
|||
|
||||
if (!pData || !dwSize) return S_OK;
|
||||
|
||||
if (!query->context)
|
||||
{
|
||||
ERR("Query not started, returning TRUE.\n");
|
||||
*data = TRUE;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
if (query->context->tid != GetCurrentThreadId())
|
||||
{
|
||||
/* See comment in IWineD3DQuery::Issue, event query codeblock */
|
||||
|
|
Loading…
Reference in New Issue