/[RomCheater]/trunk/RomCheater/Docking/UI/UIMemoryViewer.cs
ViewVC logotype

Diff of /trunk/RomCheater/Docking/UI/UIMemoryViewer.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/RomCheater/Docking/UI/UIMemoryViewer.cs	2013/06/08 03:35:12	611
+++ trunk/RomCheater/Docking/UI/UIMemoryViewer.cs	2013/06/08 03:55:09	612
@@ -626,11 +626,11 @@
         private void GotoImageBase()
         {
             if (this.peData == null) return;
-            object ImageBase = 0;
+            ulong ImageBase = 0;
             bool x86 = this.peData.Is32bitAssembly();
             if (x86)
             {
-                ImageBase = this.peData.OptionalHeader32.ImageBase;
+                ImageBase = this.peData.OptionalHeader32._ImageBase;
                 uint ib = Convert.ToUInt32(ImageBase);
                 logger.VerboseDebug.WriteLine("UIMemoryViewer::GotoImageBase(0x{0:x8})", ib);
                 txthexGoto.Value = ib;
@@ -638,7 +638,7 @@
             }
             else
             {
-                ImageBase = this.peData.OptionalHeader64.ImageBase;
+                ImageBase = this.peData.OptionalHeader64._ImageBase;
                 ulong ib = Convert.ToUInt64(ImageBase);
                 logger.VerboseDebug.WriteLine("UIMemoryViewer::GotoImageBase(0x{0:x16})", ib);
                 txthexGoto.Value = (ulong)ib;

 

  ViewVC Help
Powered by ViewVC 1.1.22