Skip to content

Commit

Permalink
Merge pull request #4988 from leoetlino/tikview
Browse files Browse the repository at this point in the history
ESFormats: Fix calculation of the ticket start offset
  • Loading branch information
Helios747 committed Feb 28, 2017
2 parents 0a8b5b7 + e9f23fb commit f4ccc11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/Core/IOS/ES/Formats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ const std::vector<u8>& TicketReader::GetRawTicket() const
std::vector<u8> TicketReader::GetRawTicketView(u32 ticket_num) const
{
// A ticket view is composed of a view ID + part of a ticket starting from the ticket_id field.
const auto ticket_start = m_bytes.cbegin() + (GetOffset() + sizeof(Ticket)) * ticket_num;
const auto ticket_start = m_bytes.cbegin() + GetOffset() + sizeof(Ticket) * ticket_num;
const auto view_start = ticket_start + offsetof(Ticket, ticket_id);

// Copy the view ID to the buffer.
Expand Down

0 comments on commit f4ccc11

Please sign in to comment.