Commit 76fdf2c1 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Handle GetData() on event queries that aren't started yet.

This fixes a regression introduced by fb77678e.
parent e74efb54
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment