From 9b44261767b78e4496ac45020934a6f574f98b01 Mon Sep 17 00:00:00 2001 From: yellows8 Date: Fri, 18 Oct 2019 22:28:53 -0400 Subject: [PATCH] Fixed memset in usbHsEpClose() which was using sizeof() with the wrong struct. Closes #337. --- nx/source/services/usbhs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nx/source/services/usbhs.c b/nx/source/services/usbhs.c index 80f0756f..3b493aec 100644 --- a/nx/source/services/usbhs.c +++ b/nx/source/services/usbhs.c @@ -340,7 +340,7 @@ void usbHsEpClose(UsbHsClientEpSession* s) { serviceClose(&s->s); eventClose(&s->eventXfer); - memset(s, 0, sizeof(UsbHsClientIfSession)); + memset(s, 0, sizeof(UsbHsClientEpSession)); } static Result _usbHsEpSubmitRequest(UsbHsClientEpSession* s, void* buffer, u32 size, u32 timeoutInMs, u32* transferredSize) {