From db35968c43f9b0f61300a873771ccfdae3419f54 Mon Sep 17 00:00:00 2001 From: shibbo Date: Fri, 25 Jan 2019 13:05:42 -0500 Subject: [PATCH] Ensure that IsWirelessCommunicationEnabled returns a proper value --- nx/source/services/nifm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nx/source/services/nifm.c b/nx/source/services/nifm.c index 605456ba..872af36b 100644 --- a/nx/source/services/nifm.c +++ b/nx/source/services/nifm.c @@ -110,7 +110,8 @@ Result nifmIsWirelessCommunicationEnabled(bool* out) { resp = r.Raw; rc = resp->result; - *out = resp->out; + if (R_SUCCEEDED(rc) && out) + *out = resp->out != 0; } return rc;