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

This fixes a regression introduced by fb77678e9f.
This commit is contained in:
Henri Verbeet 2009-08-11 09:42:12 +02:00 committed by Alexandre Julliard
parent e74efb5487
commit 76fdf2c1a5
1 changed files with 8 additions and 0 deletions

View File

@ -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 */