From: yellows8 Date: Tue, 25 Nov 2014 04:22:24 +0000 (-0500) Subject: Fixed word-index that the handle is loaded from in the cmdreply, for MIC_GetEventHand... X-Git-Tag: v0.2.0~23 X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=300a0ed1256335ecb76f4930b81a6d06189c11d3;p=corbenik%2Fctrulib.git Fixed word-index that the handle is loaded from in the cmdreply, for MIC_GetEventHandle(). --- diff --git a/libctru/source/services/mic.c b/libctru/source/services/mic.c index 395792b..817b9aa 100644 --- a/libctru/source/services/mic.c +++ b/libctru/source/services/mic.c @@ -207,7 +207,7 @@ Result MIC_GetEventHandle(Handle *handle) if((ret = svcSendSyncRequest(MIC_handle))!=0)return ret; - if(handle)*handle = cmdbuf[2]; + if(handle)*handle = cmdbuf[3]; return (Result)cmdbuf[1]; }