From c1507299cbeb47442b9ce6c42e66de537292de31 Mon Sep 17 00:00:00 2001 From: HookedBehemoth Date: Sun, 23 Feb 2020 16:24:18 +0100 Subject: [PATCH] check status pointer --- nx/source/services/tc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nx/source/services/tc.c b/nx/source/services/tc.c index e5f7b497..60478090 100644 --- a/nx/source/services/tc.c +++ b/nx/source/services/tc.c @@ -35,7 +35,7 @@ Result tcDisableFanControl(void) { Result tcIsFanControlEnabled(bool *status) { u8 tmp=0; Result rc = serviceDispatchOut(&g_tcSrv, 8, tmp); - if (R_SUCCEEDED(rc)) *status = tmp & 1; + if (R_SUCCEEDED(rc) && status) *status = out & 1; return rc; }