summaryrefslogtreecommitdiff
path: root/apps/plugins/brickmania.c
diff options
context:
space:
mode:
authorTeruaki Kawashima <teru@rockbox.org>2009-12-06 13:52:28 +0000
committerTeruaki Kawashima <teru@rockbox.org>2009-12-06 13:52:28 +0000
commit5cdd920d1267a7548ab492864c4a20a20c3d93ff (patch)
tree518ddb3cbbf4eabcb8ca0941e386a285c56b53bb /apps/plugins/brickmania.c
parente760a5abbf951fd22e1dd8eb116e344ad3d76a61 (diff)
downloadrockbox-5cdd920d1267a7548ab492864c4a20a20c3d93ff.tar.gz
rockbox-5cdd920d1267a7548ab492864c4a20a20c3d93ff.zip
Correct checking return value of open in plugins.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23874 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/brickmania.c')
-rw-r--r--apps/plugins/brickmania.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c
index 6ae8cb31ed..a372eb0813 100644
--- a/apps/plugins/brickmania.c
+++ b/apps/plugins/brickmania.c
@@ -1046,6 +1046,8 @@ static void brickmania_savegame(void)
1046 1046
1047 /* write out the game state to the save file */ 1047 /* write out the game state to the save file */
1048 fd = rb->open(SAVE_FILE, O_WRONLY|O_CREAT); 1048 fd = rb->open(SAVE_FILE, O_WRONLY|O_CREAT);
1049 if(fd < 0) return;
1050
1049 rb->write(fd, &pad_pos_x, sizeof(pad_pos_x)); 1051 rb->write(fd, &pad_pos_x, sizeof(pad_pos_x));
1050 rb->write(fd, &life, sizeof(life)); 1052 rb->write(fd, &life, sizeof(life));
1051 rb->write(fd, &game_state, sizeof(game_state)); 1053 rb->write(fd, &game_state, sizeof(game_state));