From 40745e727cfc3984420a6476c3c4f613b4c8094e Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 5 Jan 2014 23:12:16 -0800 Subject: [PATCH] Correct errors in sceMpegRingbufferAvailableSize(). --- Core/HLE/sceMpeg.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Core/HLE/sceMpeg.cpp b/Core/HLE/sceMpeg.cpp index 9505b2d8d..7b61bd6b6 100644 --- a/Core/HLE/sceMpeg.cpp +++ b/Core/HLE/sceMpeg.cpp @@ -954,14 +954,14 @@ int sceMpegRingbufferAvailableSize(u32 ringbufferAddr) auto ringbuffer = PSPPointer::Create(ringbufferAddr); if (!ringbuffer.IsValid()) { - ERROR_LOG(ME, "sceMpegRingbufferAvailableSize(%08x): invalid addresses", ringbufferAddr); - return -1; + ERROR_LOG(ME, "sceMpegRingbufferAvailableSize(%08x): invalid ringbuffer, should crash", ringbufferAddr); + return SCE_KERNEL_ERROR_ILLEGAL_ADDRESS; } MpegContext *ctx = getMpegCtx(ringbuffer->mpeg); if (!ctx) { ERROR_LOG(ME, "sceMpegRingbufferAvailableSize(%08x): bad mpeg handle", ringbufferAddr); - return -1; + return ERROR_MPEG_NOT_YET_INIT; } hleEatCycles(2020);