Skip to content

Commit

Permalink
[XAM] XamSessionRefObjByHandle added missing handle retain
Browse files Browse the repository at this point in the history
  • Loading branch information
Gliniak committed Jan 1, 2024
1 parent 1f6fefc commit 6a1bd77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/xenia/kernel/xam/xam_user.cc
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,8 @@ dword_result_t XamSessionRefObjByHandle_entry(dword_t handle,
return X_STATUS_INVALID_HANDLE;
}

object->RetainHandle();

*obj_ptr = (uint32_t)object->guest_object();
return X_ERROR_SUCCESS;
}
Expand Down

0 comments on commit 6a1bd77

Please sign in to comment.