From 18d4f1136dbcfbacc38b12296cf01af9948e8ad7 Mon Sep 17 00:00:00 2001 From: Steven Smith Date: Wed, 13 Apr 2016 15:46:52 -0700 Subject: [PATCH] Fix ControlSecureSave parameters. --- source/ui/section/action/deletesecurevalue.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/ui/section/action/deletesecurevalue.c b/source/ui/section/action/deletesecurevalue.c index 70c3ced..9b1d964 100644 --- a/source/ui/section/action/deletesecurevalue.c +++ b/source/ui/section/action/deletesecurevalue.c @@ -16,7 +16,9 @@ static void action_delete_secure_value_end_onresponse(ui_view* view, void* data, static void action_delete_secure_value_update(ui_view* view, void* data, float* progress, char* progressText) { title_info* info = (title_info*) data; - Result res = FSUSER_ControlSecureSave(SECURESAVE_ACTION_DELETE, (SECUREVALUE_SLOT_SD << 32) | (info->titleId & 0xFFFFFFF)); + u64 param = (SECUREVALUE_SLOT_SD << 32) | (info->titleId & 0xFFFFFFF); + u8 out = 0; + Result res = FSUSER_ControlSecureSave(SECURESAVE_ACTION_DELETE, ¶m, sizeof(param), &out, sizeof(out)); progressbar_destroy(view); ui_pop();