summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/CompressedBlob.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2020-04-10 16:21:51 +0200
committerJosJuice <josjuice@gmail.com>2020-04-24 15:10:36 +0200
commitcefc2a7baa9a4dba878352ebc3a5c92b63ed295a (patch)
treef91bc8362b36689007ed3ccba35e6960ef7ad3d4 /Source/Core/DiscIO/CompressedBlob.cpp
parentdae2c14f7f215b2da570308a10f533d99fdb80af (diff)
DiscIO: Fix edge case where blocks could get scrubbed accidentally
If we start 31 KiB into a 32 KiB block and want to mark 2 KiB of data as used, we need to mark 2 blocks as used, not just 1. This problem is avoided when calling MarkAsUsed from MarkAsUsedE, since MarkAsUsedE aligns to 32 KiB on its own. Most calls to MarkAsUsed are from MarkAsUsedE, which is why this hasn't been a noticeable problem in the past.
Diffstat (limited to 'Source/Core/DiscIO/CompressedBlob.cpp')
0 files changed, 0 insertions, 0 deletions