gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash ChangeLog gui/fb.cpp


From: Udo Giacomozzi
Subject: [Gnash-commit] gnash ChangeLog gui/fb.cpp
Date: Wed, 07 May 2008 18:16:58 +0000

CVSROOT:        /cvsroot/gnash
Module name:    gnash
Changes by:     Udo Giacomozzi <udog>   08/05/07 18:16:58

Modified files:
        .              : ChangeLog 
        gui            : fb.cpp 

Log message:
        gui/fb.cpp: don't read from closed file descriptors

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.6545&r2=1.6546
http://cvs.savannah.gnu.org/viewcvs/gnash/gui/fb.cpp?cvsroot=gnash&r1=1.58&r2=1.59

Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/gnash/gnash/ChangeLog,v
retrieving revision 1.6545
retrieving revision 1.6546
diff -u -b -r1.6545 -r1.6546
--- ChangeLog   7 May 2008 15:40:40 -0000       1.6545
+++ ChangeLog   7 May 2008 18:16:55 -0000       1.6546
@@ -1,3 +1,7 @@
+2008-05-07 Udo Giacomozzi <address@hidden>
+
+       * gui/fb.cpp: don't read from closed file descriptors
+
 2008-05-07 Benjamin Wolsey <address@hidden>
 
        * po/*.po, po/gnash.pot: updated for distribution.

Index: gui/fb.cpp
===================================================================
RCS file: /cvsroot/gnash/gnash/gui/fb.cpp,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -b -r1.58 -r1.59
--- gui/fb.cpp  6 May 2008 11:56:41 -0000       1.58
+++ gui/fb.cpp  7 May 2008 18:16:57 -0000       1.59
@@ -1136,6 +1136,8 @@
 void FBGui::check_mouse()
 {
 
+  if (input_fd < 0) return;
+
   struct input_event ev;  // time,type,code,value
   
   static int new_mouse_x = 0; // all uncalibrated!
@@ -1383,6 +1385,8 @@
 void FBGui::check_keyboard()
 {
 
+  if (keyb_fd < 0) return;
+
   struct input_event ev;  // time,type,code,value
 
   




reply via email to

[Prev in Thread] Current Thread [Next in Thread]