mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Rtc: Fix day of week stack bounds issue.
Also, add a couple other tests showing as passing now.
This commit is contained in:
parent
e75d2a097b
commit
9e688eaa7c
3 changed files with 7 additions and 6 deletions
|
@ -408,7 +408,8 @@ static u32 sceRtcGetDayOfWeek(u32 year, u32 month, u32 day)
|
|||
restMonth = restMonth % 5;
|
||||
day += grp5 * (31*3+30*2);
|
||||
static u32 t[] = { 31, 31*2, 31*2+30, 31*3+30, 31*3+30*2 };
|
||||
day += t[restMonth-1];
|
||||
if (restMonth > 0)
|
||||
day += t[restMonth-1];
|
||||
month = 12;
|
||||
}
|
||||
|
||||
|
@ -426,7 +427,7 @@ static u32 sceRtcGetDayOfWeek(u32 year, u32 month, u32 day)
|
|||
local.tm_hour = 0;
|
||||
local.tm_min = 0;
|
||||
local.tm_sec = 0;
|
||||
local.tm_isdst = -1;
|
||||
local.tm_isdst = 0;
|
||||
|
||||
mktime(&local);
|
||||
return local.tm_wday;
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 2351bb1abde22ea5d3e68d1f242dc947434e3753
|
||||
Subproject commit 8b5da5710a965d48f685e7c9dbfaeeae32d4c4d8
|
6
test.py
6
test.py
|
@ -127,6 +127,7 @@ tests_good = [
|
|||
"font/fontinfobyindex",
|
||||
"font/fontlist",
|
||||
"font/optimum",
|
||||
"font/resolution",
|
||||
"font/shadowimagerect",
|
||||
"gpu/callbacks/ge_callbacks",
|
||||
"gpu/clut/address",
|
||||
|
@ -191,6 +192,7 @@ tests_good = [
|
|||
"power/volatile/unlock",
|
||||
"rtc/rtc",
|
||||
"rtc/arithmetic",
|
||||
"rtc/lookup",
|
||||
"string/string",
|
||||
"sysmem/freesize",
|
||||
"sysmem/memblock",
|
||||
|
@ -311,6 +313,7 @@ tests_good = [
|
|||
"threads/vtimers/start",
|
||||
"threads/vtimers/stop",
|
||||
"threads/wakeup/wakeup",
|
||||
"utility/msgdialog/abort",
|
||||
"utility/savedata/autosave",
|
||||
"utility/savedata/filelist",
|
||||
"utility/savedata/makedata",
|
||||
|
@ -375,7 +378,6 @@ tests_next = [
|
|||
"font/open",
|
||||
"font/openfile",
|
||||
"font/openmem",
|
||||
"font/resolution",
|
||||
"font/shadowglyphimage",
|
||||
"font/shadowglyphimageclip",
|
||||
"font/shadowinfo",
|
||||
|
@ -422,7 +424,6 @@ tests_next = [
|
|||
"net/primary/ether",
|
||||
"power/freq",
|
||||
"rtc/convert",
|
||||
"rtc/lookup",
|
||||
"sysmem/partition",
|
||||
"threads/callbacks/cancel",
|
||||
"threads/callbacks/count",
|
||||
|
@ -436,7 +437,6 @@ tests_next = [
|
|||
"umd/io/umd_io",
|
||||
"umd/raw_access/raw_access",
|
||||
"umd/wait/wait",
|
||||
"utility/msgdialog/abort",
|
||||
"utility/msgdialog/dialog",
|
||||
"utility/savedata/getsize",
|
||||
"utility/savedata/idlist",
|
||||
|
|
Loading…
Add table
Reference in a new issue