FIX sceIoOpen return error

This commit is contained in:
Francisco José García García 2017-12-04 18:09:37 +01:00 committed by GitHub
parent 6359aee509
commit 90dd2892b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -251,7 +251,7 @@ RFILE *filestream_open(const char *path, unsigned mode, ssize_t unused)
#if defined(PSP)
stream->fd = sceIoOpen(path, flags, mode_int);
if (stream->fd == -1)
if (stream->fd < 0)
goto error;
#else
#if defined(HAVE_BUFFERED_IO)