From d450843200a11bc9fb55305907a434f037868047 Mon Sep 17 00:00:00 2001 From: Maschell Date: Tue, 11 Apr 2017 17:35:32 +0200 Subject: [PATCH] Return from KPADReadEx and VPADRead even if the error pointer was NULL. --- src/patcher/hid_controller_function_patcher.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/patcher/hid_controller_function_patcher.cpp b/src/patcher/hid_controller_function_patcher.cpp index 08c3088..4e5b7b5 100644 --- a/src/patcher/hid_controller_function_patcher.cpp +++ b/src/patcher/hid_controller_function_patcher.cpp @@ -64,8 +64,8 @@ DECL(s32, VPADRead, s32 chan, VPADData *buffer, u32 buffer_size, s32 *error) { } if(error != NULL){ *error = 0; - result = 1; // We want the WiiU to ignore everything else. } + result = 1; // We want the WiiU to ignore everything else. } } @@ -88,8 +88,8 @@ DECL(s32,KPADReadEx, s32 chan, KPADData * buffer, u32 buffer_count, s32 *error ) } if(error != NULL){ *error = 0; - return 1; // We have saved one set of data. Should be enough because its no wireless communication. } + return 1; // We have saved one set of data. Should be enough because its no wireless communication. }else if(res != CONTROLLER_PATCHER_ERROR_MAPPING_DISABLED){ //log_printf("KPADReadEx error: %d\n",res); }