/[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/06 07:56:04	577
+++ trunk/RomCheater/Docking/UI/UIMemoryViewer.cs	2013/06/06 08:18:44	578
@@ -81,7 +81,7 @@
 #endif
         }
         #region IBrowseMemoryRegion
-        public bool BrowseMemoryRegion(uint MemoryRegion)
+        public bool BrowseMemoryRegion(ulong MemoryRegion)
         {
             try
             {
@@ -126,11 +126,11 @@
         public void SetPEViewerData(IPEDData peData) { this.peData = peData; }
         #endregion
         public void GotoTop() { this.CURRENT_TOP_ADDR = 0; }
-        public void GotoBottom() { uint size = (uint)MemoryRangeSize; this.CURRENT_TOP_ADDR = (uint)((size - 1) - max_ram_view); }
-        public void GotoAddress(uint addr)
+        public void GotoBottom() { ulong size = (ulong)MemoryRangeSize; this.CURRENT_TOP_ADDR = (ulong)((size - 1) - max_ram_view); }
+        public void GotoAddress(ulong addr)
         {
             logger.VerboseDebug.WriteLine("UIMemoryViewer::GotoAddress(0x{0:x8})", addr);
-            this.CURRENT_TOP_ADDR = (uint)(addr & 0xFFFFFFF0);
+            this.CURRENT_TOP_ADDR = (ulong)(addr & 0xFFFFFFFF0);
         }
         private bool _UpdateEnabled;
         public bool UpdateEnabled
@@ -266,7 +266,7 @@
                 using (GenericMemoryProvider provider = new GenericMemoryProvider((IAcceptsProcessAndConfig)this))
                 {
                     provider.OpenProvider();
-                    int bytesReadSize;
+                    ulong bytesReadSize;
                     provider.ReadProcessMemory(CURRENT_TOP_ADDR, (uint)max_ram_view, out bytesReadSize, out data);
                     provider.CloseProvider();
                 }
@@ -366,7 +366,7 @@
                 using (GenericMemoryProvider provider = new GenericMemoryProvider((IAcceptsProcessAndConfig)this))
                 {
                     provider.OpenProvider();
-                    uint bytesReadSize;
+                    ulong bytesReadSize;
 
                     provider.WriteProcessMemory(start_address, data, out bytesReadSize);
                     //for (int i = 0; i < data.Length; i ++)

 

  ViewVC Help
Powered by ViewVC 1.1.22