Commit 7fbb1e8a authored by Waldo Bastian's avatar Waldo Bastian

Generate proper error for NULL display.

parent 5811e6a2
...@@ -72,6 +72,11 @@ VADisplay vaGetDisplay ( ...@@ -72,6 +72,11 @@ VADisplay vaGetDisplay (
VADisplay dpy = NULL; VADisplay dpy = NULL;
VADriverContextP ctx = pDriverContexts; VADriverContextP ctx = pDriverContexts;
if (!native_dpy)
{
return NULL;
}
while (ctx) while (ctx)
{ {
if (ctx->x11_dpy == (Display *)native_dpy) if (ctx->x11_dpy == (Display *)native_dpy)
......
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