Merge pull request #102 from tmaul/master

reduce the number of errors in sceRtc.cpp
This commit is contained in:
Henrik Rydgård 2012-11-28 12:23:09 -08:00
commit 509dcded91

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)
{
ret = PSP_TIME_INVALID_YEAR;
}