mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-06 11:22:15 +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);
|
Result rc = serviceIpcDispatch(&g_pcvSrv);
|
||||||
|
|
||||||
if (R_SUCCEEDED(rc)) {
|
if (R_SUCCEEDED(rc) && isEnabled) {
|
||||||
IpcParsedCommand r;
|
IpcParsedCommand r;
|
||||||
struct {
|
struct {
|
||||||
u64 magic;
|
u64 magic;
|
||||||
|
Loading…
Reference in New Issue
Block a user