From 6ee4d389a50d2320e42dbaae9d612bf53b1a83e8 Mon Sep 17 00:00:00 2001 From: plutoo Date: Mon, 19 Feb 2018 23:40:48 +0100 Subject: [PATCH] Binder bugfix --- nx/source/gfx/binder.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nx/source/gfx/binder.c b/nx/source/gfx/binder.c index 6c98152e..f5b7a5d5 100644 --- a/nx/source/gfx/binder.c +++ b/nx/source/gfx/binder.c @@ -30,22 +30,22 @@ Result binderInitSession(Binder *session, u32 unk0) rc = binderAdjustRefcount(session, 1, 1); if (R_FAILED(rc)) { - rc = binderAdjustRefcount(session, -1, 0); + binderAdjustRefcount(session, -1, 0); return rc; } rc = binderGetNativeHandle(session, unk0, &session->nativeHandle); if (R_FAILED(rc)) { - rc = binderAdjustRefcount(session, -1, 1); - rc = binderAdjustRefcount(session, -1, 0); + binderAdjustRefcount(session, -1, 1); + binderAdjustRefcount(session, -1, 0); return rc; } // When the output nativeHandle is 0 the Binder ID is probably invalid. - if(session->nativeHandle == 0) { - rc = binderAdjustRefcount(session, -1, 1); - rc = binderAdjustRefcount(session, -1, 0); + if (session->nativeHandle == 0) { + binderAdjustRefcount(session, -1, 1); + binderAdjustRefcount(session, -1, 0); return MAKERESULT(Module_Libnx, LibnxError_BadInput); }