reduce the number of errors in sceRtc.cpp

This commit is contained in:
Kevin Armstrong 2012-11-27 23:44:36 +00:00
parent 37f28ab4eb
commit de0a161be6

View File

@ -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;
}