yuzu-emu
/
yuzu
Archived
1
0
Fork 0

Prevent nullptr dereference on swkbd error case

This commit is contained in:
David Marcec 2020-06-25 00:25:15 +10:00
parent 32343d820d
commit 510838759f
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ void SoftwareKeyboard::Initialize() {
std::memcpy(&config, keyboard_config.data(), sizeof(KeyboardConfig));
const auto work_buffer_storage = broker.PopNormalDataToApplet();
ASSERT(work_buffer_storage != nullptr);
ASSERT_OR_EXECUTE(work_buffer_storage != nullptr, { return; });
const auto& work_buffer = work_buffer_storage->GetData();
if (config.initial_string_size == 0)