mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-30 20:01:00 +00:00
reduce the number of errors in sceRtc.cpp
This commit is contained in:
parent
37f28ab4eb
commit
de0a161be6
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user