Explorar o código

kernel/svc: Correct output parameter for svcGetThreadId

The service call uses a 64-bit value, just like svcGetProcessId. This
amends the function signature accordingly.
Lioncash %!s(int64=7) %!d(string=hai) anos
pai
achega
0906302ca9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/core/hle/kernel/svc.cpp

+ 1 - 1
src/core/hle/kernel/svc.cpp

@@ -350,7 +350,7 @@ static ResultCode SendSyncRequest(Handle handle) {
 }
 
 /// Get the ID for the specified thread.
-static ResultCode GetThreadId(u32* thread_id, Handle thread_handle) {
+static ResultCode GetThreadId(u64* thread_id, Handle thread_handle) {
     LOG_TRACE(Kernel_SVC, "called thread=0x{:08X}", thread_handle);
 
     const auto& handle_table = Core::CurrentProcess()->GetHandleTable();