summaryrefslogtreecommitdiff
path: root/source/files.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/files.c')
-rw-r--r--source/files.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/files.c b/source/files.c
index ab8674a..36aeda1 100644
--- a/source/files.c
+++ b/source/files.c
@@ -1289,7 +1289,7 @@ ssize_t FS_FOpenFile( const char *name, qhandle_t *f, unsigned mode ) {
// allocate new file handle
file = alloc_handle( &handle );
if( !file ) {
- return Q_ERR_NFILE;
+ return Q_ERR_MFILE;
}
file->mode = mode;
@@ -1392,7 +1392,7 @@ ssize_t FS_LoadFileEx( const char *path, void **buffer, unsigned flags ) {
// allocate new file handle
file = alloc_handle( &f );
if( !file ) {
- return Q_ERR_NOENT;
+ return Q_ERR_MFILE;
}
file->mode = ( flags & ~FS_MODE_MASK ) | FS_MODE_READ;