From d1985fe77e85b27392277024640c30c4d3c4c66b Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Wed, 5 Dec 2018 13:21:21 -0800 Subject: [PATCH] tma: better GetSettingsTask output --- stratosphere/tma/source/settings/settings_task.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stratosphere/tma/source/settings/settings_task.cpp b/stratosphere/tma/source/settings/settings_task.cpp index 650cc6c15..52540e623 100644 --- a/stratosphere/tma/source/settings/settings_task.cpp +++ b/stratosphere/tma/source/settings/settings_task.cpp @@ -39,8 +39,10 @@ void GetSettingTask::OnReceivePacket(TmaPacket *packet) { void GetSettingTask::OnSendPacket(TmaPacket *packet) { packet->Write((u8)this->succeeded); - packet->Write((u32)this->value_size); - packet->Write(this->value, this->value_size); + if (this->succeeded) { + packet->Write((u32)this->value_size); + packet->Write(this->value, this->value_size); + } this->Complete(); } \ No newline at end of file