src/video/qnxgf/SDL_gf_input.c
changeset 3124 d7174e9f65ce
parent 3109 7b3a09fb9c8b
child 3139 7f684f249ec9
--- a/src/video/qnxgf/SDL_gf_input.c	Thu May 14 11:50:05 2009 +0000
+++ b/src/video/qnxgf/SDL_gf_input.c	Thu May 14 11:51:42 2009 +0000
@@ -262,6 +262,10 @@
       {
          mdata=(SDL_MouseData*)cursor->mouse->driverdata;
          didata=(SDL_DisplayData*)mdata->didata;
+         if ((didata==NULL) || (mdata==NULL))
+         {
+            return;
+         }
       }
       else
       {
@@ -405,6 +409,10 @@
    if (window_id<=0)
    {
       didata=(SDL_DisplayData*)cursor->mouse->driverdata;
+      if (didata==NULL)
+      {
+         return;
+      }
    }
    else
    {