From 842a6fe1d4eed3e171ffef0521c2775fbedd6076 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 5 Apr 2014 15:46:56 -0400 Subject: [PATCH] Fix two parameter sanity checks in sceRtc. --- rpcs3/Emu/SysCalls/Modules/cellRtc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/SysCalls/Modules/cellRtc.cpp b/rpcs3/Emu/SysCalls/Modules/cellRtc.cpp index 1e440fe59a..1ee5602a78 100644 --- a/rpcs3/Emu/SysCalls/Modules/cellRtc.cpp +++ b/rpcs3/Emu/SysCalls/Modules/cellRtc.cpp @@ -190,7 +190,7 @@ int cellRtcGetTick(mem_ptr_t pTime, mem_ptr_t pTic { cellRtc.Log("cellRtcGetTick(pTime=0x%x, pTick=0x%x)", pTime.GetAddr(), pTick.GetAddr()); - if (!pTime.IsGood() || !pTime.IsGood()) + if (!pTime.IsGood() || !pTick.IsGood()) return CELL_RTC_ERROR_INVALID_POINTER; wxDateTime datetime = wxDateTime::wxDateTime(pTime->day, (wxDateTime::Month)pTime->month.ToLE(), pTime->year, pTime->hour, pTime->minute, pTime->second, (pTime->microsecond / 1000)); @@ -203,7 +203,7 @@ int cellRtcSetTick(mem_ptr_t pTime, mem_ptr_t pTic { cellRtc.Log("cellRtcSetTick(pTime=0x%x, pTick=0x%x)", pTime.GetAddr(), pTick.GetAddr()); - if (!pTime.IsGood() || !pTime.IsGood()) + if (!pTime.IsGood() || !pTick.IsGood()) return CELL_RTC_ERROR_INVALID_POINTER; wxDateTime date = wxDateTime::wxDateTime((time_t)pTick->tick);