mirror of https://github.com/RPCS3/rpcs3.git
Fix for ticket parsing
This commit is contained in:
parent
e243ef5907
commit
2f9b930c6b
|
@ -192,7 +192,7 @@ namespace np
|
||||||
const auto* ptr = data() + index;
|
const auto* ptr = data() + index;
|
||||||
tdata.id = *reinterpret_cast<const be_t<u16>*>(ptr);
|
tdata.id = *reinterpret_cast<const be_t<u16>*>(ptr);
|
||||||
tdata.len = *reinterpret_cast<const be_t<u16>*>(ptr + 2);
|
tdata.len = *reinterpret_cast<const be_t<u16>*>(ptr + 2);
|
||||||
const auto* data_ptr = data() + 4;
|
const auto* data_ptr = data() + index + 4;
|
||||||
|
|
||||||
auto check_size = [&](std::size_t expected) -> bool
|
auto check_size = [&](std::size_t expected) -> bool
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue