From 780e252059f340bdd3bfa140fbd14ffb70615405 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 12 May 2013 11:41:31 -0700 Subject: [PATCH] Fix crash in mp3 reading. --- Core/HLE/sceMp3.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Core/HLE/sceMp3.cpp b/Core/HLE/sceMp3.cpp index 6d19ec6e7d..280e918b86 100644 --- a/Core/HLE/sceMp3.cpp +++ b/Core/HLE/sceMp3.cpp @@ -223,6 +223,7 @@ int readFunc(void *opaque, uint8_t *buf, int buf_size) { if (ctx->bufferRead == ctx->mp3BufSize) ctx->bufferRead = 0; ctx->bufferAvailable -= to_read; + buf_size -= to_read; res += to_read; }