hocclk: fix pointer dereference

This commit is contained in:
souldbminersmwc
2026-04-21 19:35:05 -04:00
parent 530588a818
commit 883b4fc3f4
2 changed files with 6 additions and 0 deletions

View File

@@ -290,6 +290,9 @@ public:
: applicationId(appId), profileList(pList), profile(prof) {}
void listUI() override {
BaseMenuGui::refresh(); // get latest context
if(!this->context)
return;
Result rc = hocclkIpcGetConfigValues(&configList);
if (R_FAILED(rc)) [[unlikely]] {
FatalGui::openWithResultCode("hocclkIpcGetConfigValues", rc);

View File

@@ -301,6 +301,9 @@ public:
GovernorOverrideSubMenuGui(u32 initialPacked) : packed(initialPacked) {}
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
if (R_FAILED(rc)) [[unlikely]] {
FatalGui::openWithResultCode("hocclkIpcGetConfigValues", rc);