mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Merge pull request #102 from tmaul/master
reduce the number of errors in sceRtc.cpp
This commit is contained in:
commit
509dcded91
1 changed files with 1 additions and 1 deletions
|
@ -379,7 +379,7 @@ int sceRtcCheckValid(u32 datePtr)
|
||||||
{
|
{
|
||||||
ScePspDateTime pt;
|
ScePspDateTime pt;
|
||||||
Memory::ReadStruct(datePtr, &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;
|
ret = PSP_TIME_INVALID_YEAR;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue