hocclk: fix pointer dereference
This commit is contained in:
@@ -290,6 +290,9 @@ public:
|
|||||||
: applicationId(appId), profileList(pList), profile(prof) {}
|
: applicationId(appId), profileList(pList), profile(prof) {}
|
||||||
|
|
||||||
void listUI() override {
|
void listUI() override {
|
||||||
|
BaseMenuGui::refresh(); // get latest context
|
||||||
|
if(!this->context)
|
||||||
|
return;
|
||||||
Result rc = hocclkIpcGetConfigValues(&configList);
|
Result rc = hocclkIpcGetConfigValues(&configList);
|
||||||
if (R_FAILED(rc)) [[unlikely]] {
|
if (R_FAILED(rc)) [[unlikely]] {
|
||||||
FatalGui::openWithResultCode("hocclkIpcGetConfigValues", rc);
|
FatalGui::openWithResultCode("hocclkIpcGetConfigValues", rc);
|
||||||
|
|||||||
@@ -301,6 +301,9 @@ public:
|
|||||||
GovernorOverrideSubMenuGui(u32 initialPacked) : packed(initialPacked) {}
|
GovernorOverrideSubMenuGui(u32 initialPacked) : packed(initialPacked) {}
|
||||||
|
|
||||||
void listUI() override {
|
void listUI() override {
|
||||||
|
BaseMenuGui::refresh(); // get latest context
|
||||||
|
if(!this->context)
|
||||||
|
return;
|
||||||
Result rc = hocclkIpcGetConfigValues(&configList); // idk why this is needed, probably some refreshing issue
|
Result rc = hocclkIpcGetConfigValues(&configList); // idk why this is needed, probably some refreshing issue
|
||||||
if (R_FAILED(rc)) [[unlikely]] {
|
if (R_FAILED(rc)) [[unlikely]] {
|
||||||
FatalGui::openWithResultCode("hocclkIpcGetConfigValues", rc);
|
FatalGui::openWithResultCode("hocclkIpcGetConfigValues", rc);
|
||||||
|
|||||||
Reference in New Issue
Block a user