• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqtwindows誰得cocoapythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdomvb.netdirectxbtronarduinopreviewerゲームエンジン

Lightweight cross-platform joystick input library


Commit MetaInfo

Revision0db6de8c9e74d8c722ba1f2804abfe86f0c35036 (tree)
Zeit2021-05-11 06:40:50
AutorAlaskanEmily <emily@alas...>
CommiterAlaskanEmily

Log Message

Properly detect failure to open file descriptors for Unix drivers

Ändern Zusammenfassung

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 }