mirror of
https://github.com/rvtr/ctr_Repair.git
synced 2025-10-31 13:51:08 -04:00
確保したヒープ解放前のreturnを削除
InitializeHardwareDependentSettingの戻り値をチェックするように git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@157 385bec56-5757-e545-9c3a-d8741f4650f1
This commit is contained in:
parent
4305dc4c6e
commit
af6c27869e
@ -743,7 +743,11 @@ void ControlState(::std::vector<std::string>& operationMessage, bool& nextStep,
|
|||||||
nn::ptm::CTR::InvalidateSystemTime();
|
nn::ptm::CTR::InvalidateSystemTime();
|
||||||
|
|
||||||
// cfgの本体固有値をcal値で初期化する
|
// cfgの本体固有値をcal値で初期化する
|
||||||
InitializeHardwareDependentSetting();
|
result = InitializeHardwareDependentSetting();
|
||||||
|
if(result.IsFailure())
|
||||||
|
{
|
||||||
|
s_RestoreState = FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
init = false;
|
init = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -651,11 +651,8 @@ nn::Result ImportIvs()
|
|||||||
}
|
}
|
||||||
nn::fs::Unmount(common::NAND_ARCHIVE_NAME);
|
nn::fs::Unmount(common::NAND_ARCHIVE_NAME);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
common::HeapManager::GetHeap()->Free(enc);
|
common::HeapManager::GetHeap()->Free(enc);
|
||||||
|
NN_UTIL_RETURN_IF_FAILED(result);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user