From de0a161be69e41b28434fa6e643069aa07bb33c9 Mon Sep 17 00:00:00 2001 From: Kevin Armstrong Date: Tue, 27 Nov 2012 23:44:36 +0000 Subject: [PATCH 1/2] reduce the number of errors in sceRtc.cpp --- Core/HLE/sceRtc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/HLE/sceRtc.cpp b/Core/HLE/sceRtc.cpp index ed497e8633..5675c0fc50 100644 --- a/Core/HLE/sceRtc.cpp +++ b/Core/HLE/sceRtc.cpp @@ -379,7 +379,7 @@ int sceRtcCheckValid(u32 datePtr) { ScePspDateTime pt; Memory::ReadStruct(datePtr, &pt); - if (pt.year >= 0) // is there a maximum? + if (pt.year < 1 || pt.year > 9999) //what is the real maximum? { ret = PSP_TIME_INVALID_YEAR; } From 5d0c88334bbb4d0085543f7c433656dac2e2a47b Mon Sep 17 00:00:00 2001 From: Kevin Armstrong Date: Wed, 28 Nov 2012 19:24:35 +0000 Subject: [PATCH 2/2] 9999 is actually the maximum year as verified on my PSP --- Core/HLE/sceRtc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/HLE/sceRtc.cpp b/Core/HLE/sceRtc.cpp index 5675c0fc50..7d9067a538 100644 --- a/Core/HLE/sceRtc.cpp +++ b/Core/HLE/sceRtc.cpp @@ -379,7 +379,7 @@ int sceRtcCheckValid(u32 datePtr) { ScePspDateTime pt; Memory::ReadStruct(datePtr, &pt); - if (pt.year < 1 || pt.year > 9999) //what is the real maximum? + if (pt.year < 1 || pt.year > 9999) { ret = PSP_TIME_INVALID_YEAR; }