diff options
| author | Zach Hilman <zachhilman@gmail.com> | 2018-08-28 22:38:35 -0400 |
|---|---|---|
| committer | Zach Hilman <zachhilman@gmail.com> | 2018-09-04 16:24:02 -0400 |
| commit | cbd517d8cc1ba70d149adb57299a62c7a4e5fd72 (patch) | |
| tree | 39f994f49b20fad537bcc74e0bb7fdb8ef209803 /src/core/file_sys/nca_patch.cpp | |
| parent | 2814ca362494c3d3af90abab8a66db5eb2db56f6 (diff) | |
bktr: Add logging on successful patch
Diffstat (limited to 'src/core/file_sys/nca_patch.cpp')
| -rw-r--r-- | src/core/file_sys/nca_patch.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/file_sys/nca_patch.cpp b/src/core/file_sys/nca_patch.cpp index e293af452..1e93000d5 100644 --- a/src/core/file_sys/nca_patch.cpp +++ b/src/core/file_sys/nca_patch.cpp @@ -43,7 +43,7 @@ size_t BKTR::Read(u8* data, size_t length, size_t offset) const { const auto next_relocation = GetNextRelocationEntry(offset); - if (offset + length >= next_relocation.address_patch) { + if (offset + length > next_relocation.address_patch) { const u64 partition = next_relocation.address_patch - offset; return Read(data, partition, offset) + Read(data + partition, length - partition, offset + partition); |
