mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 13:02:38 +02:00
Initialize cmdreq buf[1] in ipcCloseSession().
This commit is contained in:
parent
c548a76763
commit
02ff4915d9
@ -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);
|
||||
}
|
||||
///@}
|
||||
|
Loading…
Reference in New Issue
Block a user