sys_prx: more constants

This commit is contained in:
Megamouse 2021-04-23 21:16:00 +02:00
parent 4a88ffe250
commit 617d21fa84
3 changed files with 34 additions and 1 deletions

View file

@ -73,7 +73,7 @@ error_code sys_get_random_number(vm::ptr<void> addr, u64 size)
{
sysPrxForUser.warning("sys_get_random_number(addr=*0x%x, size=%d)", addr, size);
if (size > 0x1000)
if (size > RANDOM_NUMBER_MAX_SIZE)
{
return CELL_EINVAL;
}