mirror of
https://github.com/switchbrew/libnx.git
synced 2025-08-05 16:09:24 +02:00
Fixed memset in usbHsEpClose() which was using sizeof() with the wrong struct. Closes #337.
This commit is contained in:
parent
415adf5b93
commit
9b44261767
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user