mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 08:21:29 +12:00
sceNpDrmIsAvailable: add param checks
This commit is contained in:
parent
ea9dc9317d
commit
780a234467
1 changed files with 5 additions and 0 deletions
|
@ -457,6 +457,11 @@ error_code sceNpTerm()
|
|||
|
||||
error_code npDrmIsAvailable(vm::cptr<u8> k_licensee_addr, vm::cptr<char> drm_path)
|
||||
{
|
||||
if (!k_licensee_addr || !drm_path)
|
||||
{
|
||||
return SCE_NP_DRM_ERROR_INVALID_PARAM;
|
||||
}
|
||||
|
||||
u128 k_licensee{};
|
||||
|
||||
if (k_licensee_addr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue