mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-05 19:02:14 +02:00
Check isEnabled isn't NULL
This commit is contained in:
parent
765bacfb4c
commit
dfd08e190c
@ -159,7 +159,7 @@ Result pcvGetVoltageEnabled(bool *isEnabled, u32 voltage) {
|
||||
|
||||
Result rc = serviceIpcDispatch(&g_pcvSrv);
|
||||
|
||||
if (R_SUCCEEDED(rc)) {
|
||||
if (R_SUCCEEDED(rc) && isEnabled) {
|
||||
IpcParsedCommand r;
|
||||
struct {
|
||||
u64 magic;
|
||||
|
Loading…
Reference in New Issue
Block a user