gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] [SCM] Gnash branch, master, updated. 1ba6fd954c3088882a20


From: Sandro Santilli
Subject: [Gnash-commit] [SCM] Gnash branch, master, updated. 1ba6fd954c3088882a20f66f556926c5eee3ffe6
Date: Tue, 26 Oct 2010 17:02:56 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".

The branch, master has been updated
       via  1ba6fd954c3088882a20f66f556926c5eee3ffe6 (commit)
      from  c1cc98de9ed2a38fb2c922800cc19b427481dec5 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=1ba6fd954c3088882a20f66f556926c5eee3ffe6


commit 1ba6fd954c3088882a20f66f556926c5eee3ffe6
Author: Sandro Santilli <address@hidden>
Date:   Tue Oct 26 19:02:36 2010 +0200

    Check return from ::write from MouseDevice

diff --git a/gui/fb/MouseDevice.cpp b/gui/fb/MouseDevice.cpp
index cca972c..18f8b7e 100644
--- a/gui/fb/MouseDevice.cpp
+++ b/gui/fb/MouseDevice.cpp
@@ -328,7 +328,9 @@ MouseDevice::command(unsigned char cmd, unsigned char *buf, 
int count)
     } while (n > 0);
     
     // send command
-    write(_fd, &cmd, 1);
+    if ( -1 == write(_fd, &cmd, 1) ) {
+        return false;
+    }
 
     // read response (if any)
     while (count > 0) {

-----------------------------------------------------------------------

Summary of changes:
 gui/fb/MouseDevice.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Gnash



reply via email to

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