From bd5656bf89b3dda17377c63138016583ef50495e Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Sun, 29 May 2022 19:32:05 -0500 Subject: [PATCH] Core: Fix DarwinFlatFileReader FinishRead return Looks like the return value is expected to be the number of bytes read --- pcsx2/Darwin/DarwinFlatFileReader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/Darwin/DarwinFlatFileReader.cpp b/pcsx2/Darwin/DarwinFlatFileReader.cpp index 257d63f34e..700bf5e9c8 100644 --- a/pcsx2/Darwin/DarwinFlatFileReader.cpp +++ b/pcsx2/Darwin/DarwinFlatFileReader.cpp @@ -108,7 +108,7 @@ int FlatFileReader::FinishRead(void) while (aio_suspend(aiocb_list, 1, nullptr) == -1 && errno == EINTR) ; - return aio_return(&m_aiocb) == -1 ? -1 : 1; + return aio_return(&m_aiocb); } void FlatFileReader::CancelRead(void)