ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater/Docking/UI/UIMemoryViewer.cs
(Generate patch)

Comparing trunk/RomCheater/Docking/UI/UIMemoryViewer.cs (file contents):
Revision 356 by william, Sat Jun 9 21:11:02 2012 UTC vs.
Revision 357 by william, Sun Jun 10 00:47:58 2012 UTC

# Line 113 | Line 113 | namespace RomCheater.Docking.UI
113          public uint MemoryRangeSize { get { if (MemoryRangeStart > 0) { return (uint)(MemorySizeConstants.MaximumAddress - MemoryRangeStart); } return MemorySizeConstants.MaximumAddress; } set { } }
114          #endregion
115          #region IAcceptPEData members
116 <        private PEReader.PEData peData { get; set; }
117 <        public void SetPEViewerData(PEReader.PEData peData) { this.peData = peData; }
116 >        private IPEDData peData { get; set; }
117 >        public void SetPEViewerData(IPEDData peData) { this.peData = peData; }
118          #endregion
119          public void GotoTop() { this.CURRENT_TOP_ADDR = 0; }
120          public void GotoBottom() { uint size = (uint)MemoryRangeSize; this.CURRENT_TOP_ADDR = (int)((size - 1) - max_ram_view); }
# Line 569 | Line 569 | namespace RomCheater.Docking.UI
569                  ImageBase = this.peData.NTHeader.OptionalHeader32._ImageBase;
570                  uint ib = Convert.ToUInt32(ImageBase);
571                  //logger.Debug.WriteLine("UIMemoryViewer::btnGotoImageBase_Click(0x{0:x8})", ib);
572 <                    txthexGoto.Value = ib;
572 >                txthexGoto.Value = ib;
573                  btnGotoAddress.PerformClick();
574              }
575              else
576              {
577                  ImageBase = this.peData.NTHeader.OptionalHeader64._ImageBase;
578 <                ulong ib = Convert.ToUInt64(ImageBase);                
578 >                ulong ib = Convert.ToUInt64(ImageBase);
579                  txthexGoto.Value = (long)ib;
580                  btnGotoAddress.PerformClick();
581              }
582 +            IntPtr lpBaseAddress = this.AcceptedProcess.MainModule.BaseAddress;
583 +            int BaseAddress = lpBaseAddress.ToInt32();
584 +            txthexGoto.Value = BaseAddress;
585 +            btnGotoAddress.PerformClick();
586          }
587  
588      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines