[iortcw] 76/497: All: Fix FS_FOpenFileReadDir non-zero file handle when file not found in pk3
Simon McVittie
smcv at debian.org
Fri Sep 8 10:36:28 UTC 2017
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to annotated tag 1.42d
in repository iortcw.
commit f916cd1997f6b542c71f368e571aab57411efd19
Author: M4N4T4RMS at gmail.com <M4N4T4RMS at gmail.com@e65d2741-a53d-b2dc-ae96-bb75fa5e4c4a>
Date: Wed Mar 19 21:44:32 2014 +0000
All: Fix FS_FOpenFileReadDir non-zero file handle when file not found in pk3
---
MP/code/qcommon/files.c | 1 +
SP/code/qcommon/files.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/MP/code/qcommon/files.c b/MP/code/qcommon/files.c
index 15b5dce..a257484 100644
--- a/MP/code/qcommon/files.c
+++ b/MP/code/qcommon/files.c
@@ -1432,6 +1432,7 @@ long FS_FOpenFileReadDir(const char *filename, searchpath_t *search, fileHandle_
return FS_fplength(filep);
}
+ *file = 0;
return -1;
}
diff --git a/SP/code/qcommon/files.c b/SP/code/qcommon/files.c
index e62edba..08c75b5 100644
--- a/SP/code/qcommon/files.c
+++ b/SP/code/qcommon/files.c
@@ -1514,6 +1514,7 @@ long FS_FOpenFileReadDir(const char *filename, searchpath_t *search, fileHandle_
return FS_fplength(filep);
}
+ *file = 0;
return -1;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git
More information about the Pkg-games-commits
mailing list