From 3f2a738d3467fbef04675f29da00bb59682c0c30 Mon Sep 17 00:00:00 2001 From: bunnei Date: Tue, 17 Oct 2017 18:03:47 -0400 Subject: ipc_helpers: Fix alignment (was wrong as a result of a dynarmic bug). --- src/core/hle/ipc_helpers.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/core/hle/ipc_helpers.h') diff --git a/src/core/hle/ipc_helpers.h b/src/core/hle/ipc_helpers.h index 41899c519..94bd4e0cc 100644 --- a/src/core/hle/ipc_helpers.h +++ b/src/core/hle/ipc_helpers.h @@ -39,11 +39,12 @@ public: } /** - * Aligns the current position forward to a 16-byte boundary, padding with zeros. Jumps forward - * by 16-bytes at a minimum. + * Aligns the current position forward to a 16-byte boundary, padding with zeros. */ void AlignWithPadding() { - Skip(4 - (index & 3), true); + if (index & 3) { + Skip(4 - (index & 3), true); + } } unsigned GetCurrentOffset() const { -- cgit v1.2.3