• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Lightweight cross-platform joystick input library


Commit MetaInfo

Revisão0db6de8c9e74d8c722ba1f2804abfe86f0c35036 (tree)
Hora2021-05-11 06:40:50
AutorAlaskanEmily <emily@alas...>
CommiterAlaskanEmily

Mensagem de Log

Properly detect failure to open file descriptors for Unix drivers

Mudança Sumário

Diff

--- a/unix/rejoy_unix_core.c
+++ b/unix/rejoy_unix_core.c
@@ -88,7 +88,7 @@ void Rejoy_Unix_IterateGlob(const char *glob_path,
8888 if(st &&
8989 /* TODO: This might not even need the block check? */
9090 (S_ISBLK(st->st_mode) || S_ISCHR(st->st_mode)) &&
91- (fd = open(path, fd_flags))) {
91+ (fd = open(path, fd_flags)) >= 0) {
9292
9393 cb(arg, path, fd);
9494 }