quick fix to prevent heap corruption by overwriting 4bytes of 1byte sysconf element

This commit is contained in:
Shawn Hoffman 2016-10-03 03:43:01 -07:00
parent 2db2e88620
commit b7dbc58c27
1 changed files with 1 additions and 1 deletions

View File

@ -397,7 +397,7 @@ bool BootCore(const std::string& _rFilename)
// Disable WiiConnect24's standby mode. If it is enabled, it prevents us from receiving
// shutdown commands in the State Transition Manager (STM).
// TODO: remove this if and once Dolphin supports WC24 standby mode.
SConfig::GetInstance().m_SYSCONF->SetData("IPL.IDL", 0x00);
SConfig::GetInstance().m_SYSCONF->SetData<u8>("IPL.IDL", 0x00);
NOTICE_LOG(BOOT, "Disabling WC24 'standby' (shutdown to idle) to avoid hanging on shutdown");
}