Skip to content

Commit

Permalink
Fixed pointer truncation in SkipStructShort and SkipStructInt
Browse files Browse the repository at this point in the history
  • Loading branch information
WheretIB committed May 31, 2020
1 parent fae3375 commit 6e055d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LuaDkmDebuggerComponent/DebugHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -451,14 +451,14 @@ internal static void SkipStructByte(DkmProcess process, ref ulong address)

internal static void SkipStructShort(DkmProcess process, ref ulong address)
{
address = (address + 1ul) & ~1u; // Align
address = (address + 1ul) & ~1ul; // Align

address += 2ul;
}

internal static void SkipStructInt(DkmProcess process, ref ulong address)
{
address = (address + 3ul) & ~3u; // Align
address = (address + 3ul) & ~3ul; // Align

address += 4ul;
}
Expand Down

0 comments on commit 6e055d1

Please sign in to comment.