/[RomCheater]/trunk/RomCheater/Docking/FloatingPEViewer.cs
ViewVC logotype

Diff of /trunk/RomCheater/Docking/FloatingPEViewer.cs

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

--- trunk/RomCheater/Docking/FloatingPEViewer.cs	2012/06/19 07:56:36	378
+++ trunk/RomCheater/Docking/FloatingPEViewer.cs	2012/06/19 09:30:48	382
@@ -54,7 +54,7 @@
 #if FORCE_USE_OF_MEMORYSIZECONSTANTS
             // force use of MemorySizeConstants
             MemoryRangeStart = MemorySizeConstants.MinimumAddress;
-           MemoryRangeSizee = (MemorySizeConstants.MinimumAddress > 0) ? (uint)(MemorySizeConstants.MaximumAddress - MemorySizeConstants.MinimumAddress) : MemorySizeConstants.MaximumAddress;
+            MemoryRangeSize = MemoryRangeStart + MemorySizeConstants.MaximumAddressSize;
 #endif
 #if USE_AUTOMATIC_MEMORY_SEARCH_RANGE && !FORCE_USE_OF_MEMORYSIZECONSTANTS
             //// code to automatically choose the best starting memory address and size
@@ -72,7 +72,7 @@
             else
             {
                 MemoryRangeStart = MemorySizeConstants.MinimumAddress;
-                MemoryRangeSize = (MemorySizeConstants.MinimumAddress > 0) ? (uint)(MemorySizeConstants.MaximumAddress - MemorySizeConstants.MinimumAddress) : MemorySizeConstants.MaximumAddress;
+                MemoryRangeSize = MemorySizeConstants.MaximumAddressSize;
             }
 #endif
 

 

  ViewVC Help
Powered by ViewVC 1.1.22