Skip to content

Commit

Permalink
fixup the virtual address.
Browse files Browse the repository at this point in the history
  • Loading branch information
BeneficialCode committed Apr 28, 2024
1 parent b3fca73 commit d37d717
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion WinArk/BigPoolView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,11 @@ LRESULT CBigPoolView::OnGetDisplayInfo(int, LPNMHDR nmhdr, BOOL&) {
break;

case ColumnType::VirtualAddress:
StringCchPrintf(item.pszText, item.cchTextMax, L"0x%p", info.BigPoolInfo.VirtualAddress);
{
ULONG_PTR addr = info.BigPoolInfo.NonPaged ? (ULONG_PTR)info.BigPoolInfo.VirtualAddress - 1 : (ULONG_PTR)info.BigPoolInfo.VirtualAddress;
StringCchPrintf(item.pszText, item.cchTextMax, L"0x%p", addr);
break;
}

case ColumnType::Size:
{
Expand Down

0 comments on commit d37d717

Please sign in to comment.