[PATCH] wined3d: Check pointer before use
Alistair Leslie-Hughes
leslie_alistair at hotmail.com
Tue Aug 2 21:29:38 CDT 2016
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
dlls/wined3d/query.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wined3d/query.c b/dlls/wined3d/query.c
index 97675ad..2101e62 100644
--- a/dlls/wined3d/query.c
+++ b/dlls/wined3d/query.c
@@ -537,7 +537,7 @@ static BOOL wined3d_timestamp_query_ops_poll(struct wined3d_query *query)
TRACE("query %p.\n", query);
- if (tq->context->tid != GetCurrentThreadId())
+ if (!tq->context || tq->context->tid != GetCurrentThreadId())
{
FIXME("%p Wrong thread, returning 1.\n", query);
tq->timestamp = 1;
--
2.8.1
More information about the wine-patches
mailing list