From 773eec08e3e4aa876a4d2d1f399772bf7149e8e2 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Thu, 25 Apr 2019 03:37:15 -0700 Subject: [PATCH] Also use R_VALUE --- nx/source/services/sm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nx/source/services/sm.c b/nx/source/services/sm.c index dc26b5dc..fb8f4176 100644 --- a/nx/source/services/sm.c +++ b/nx/source/services/sm.c @@ -56,7 +56,7 @@ Result smInitialize(void) return 0; Result rc = svcConnectToNamedPort(&g_smHandle, "sm:"); - while (rc == KERNELRESULT(NotFound)) { + while (R_VALUE(rc) == KERNELRESULT(NotFound)) { svcSleepThread(50000000ul); rc = svcConnectToNamedPort(&g_smHandle, "sm:"); }