mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-05 10:52:15 +02:00
Ensure that IsWirelessCommunicationEnabled returns a proper value
This commit is contained in:
parent
3702d001c3
commit
db35968c43
@ -110,7 +110,8 @@ Result nifmIsWirelessCommunicationEnabled(bool* out) {
|
|||||||
resp = r.Raw;
|
resp = r.Raw;
|
||||||
|
|
||||||
rc = resp->result;
|
rc = resp->result;
|
||||||
*out = resp->out;
|
if (R_SUCCEEDED(rc) && out)
|
||||||
|
*out = resp->out != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
|
Loading…
Reference in New Issue
Block a user