Check isEnabled isn't NULL

This commit is contained in:
pixel-stuck 2018-11-18 15:08:49 -05:00 committed by GitHub
parent 765bacfb4c
commit dfd08e190c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;