mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 10:32:15 +02:00
pmbm: allow null out ptr
This commit is contained in:
parent
c50a32a3b7
commit
04fd5cfda2
@ -797,7 +797,7 @@ Result pmbmGetBootMode(PmBootMode *out) {
|
||||
|
||||
rc = resp->result;
|
||||
|
||||
if (R_SUCCEEDED(rc)) {
|
||||
if (R_SUCCEEDED(rc) && out) {
|
||||
*out = (PmBootMode)resp->boot_mode;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user