From 552db425b4c892f6489f8fefd42d794740c5bb61 Mon Sep 17 00:00:00 2001 From: JamePeng Date: Fri, 4 Mar 2016 16:11:14 +0800 Subject: [PATCH] Add THREADPROCESSORID_MAX on SVC::CreateThread This change will fix the crash of MH4G when it was launching --- src/core/hle/svc.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp index 7a39b101d..f3c27efe5 100644 --- a/src/core/hle/svc.cpp +++ b/src/core/hle/svc.cpp @@ -490,6 +490,7 @@ static ResultCode CreateThread(Handle* out_handle, s32 priority, u32 entry_point case THREADPROCESSORID_DEFAULT: case THREADPROCESSORID_0: case THREADPROCESSORID_1: + case THREADPROCESSORID_MAX: break; default: // TODO(bunnei): Implement support for other processor IDs