From 02ff4915d9fad93a63d75558a4f6c1eafdc78520 Mon Sep 17 00:00:00 2001 From: yellows8 Date: Fri, 11 May 2018 11:25:46 -0400 Subject: [PATCH] Initialize cmdreq buf[1] in ipcCloseSession(). --- nx/include/switch/kernel/ipc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/nx/include/switch/kernel/ipc.h b/nx/include/switch/kernel/ipc.h index 40ce5326..ce99815d 100644 --- a/nx/include/switch/kernel/ipc.h +++ b/nx/include/switch/kernel/ipc.h @@ -515,6 +515,7 @@ static inline Result ipcQueryPointerBufferSize(Handle session, size_t *size) { static inline Result ipcCloseSession(Handle session) { u32* buf = (u32*)armGetTls(); buf[0] = IpcCommandType_Close; + buf[1] = 0; return ipcDispatch(session); } ///@}