diff --git a/libretro-common/streams/file_stream.c b/libretro-common/streams/file_stream.c
index 9fdf995d8f..fd792bc40c 100644
--- a/libretro-common/streams/file_stream.c
+++ b/libretro-common/streams/file_stream.c
@@ -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)