diff options
| author | Dragorn421 <Dragorn421@users.noreply.github.com> | 2021-09-12 21:40:20 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-12 15:40:20 -0400 |
| commit | 1bce8352bc036fcbb41a29672f3c7613f455ac85 (patch) | |
| tree | 7bef63a524c266fa7f7e482cb61a33168ba2a98a /ZAPD/ZDisplayList.cpp | |
| parent | 6353cf6514fa6ac812ddc1ee210b511ecccde03b (diff) | |
Show `rawDataSize` when `GetDListLength` errors (#175)
* Show `rawDataSize` when `GetDListLength` errors
* Use `%zX` instead of `%X`
Co-authored-by: Léo Lam <leo@leolam.fr>
Co-authored-by: Léo Lam <leo@leolam.fr>
Diffstat (limited to 'ZAPD/ZDisplayList.cpp')
| -rw-r--r-- | ZAPD/ZDisplayList.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ZAPD/ZDisplayList.cpp b/ZAPD/ZDisplayList.cpp index 07645c8..3dac4e7 100644 --- a/ZAPD/ZDisplayList.cpp +++ b/ZAPD/ZDisplayList.cpp @@ -426,7 +426,8 @@ int32_t ZDisplayList::GetDListLength(const std::vector<uint8_t>& rawData, uint32 StringHelper::Sprintf("%s: Fatal error.\n" "\t End of file found when trying to find the end of the " "DisplayList at offset: '0x%X'.\n", - __PRETTY_FUNCTION__, rawDataIndex)); + "Raw data size: 0x%zX.\n", + __PRETTY_FUNCTION__, rawDataIndex, rawDataSize)); throw std::runtime_error(""); } |
