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

Comparing trunk/RomCheater/Docking/FloatingMemorySearcher.cs (file contents):
Revision 428 by william, Tue May 28 12:03:10 2013 UTC vs.
Revision 429 by william, Tue May 28 15:16:05 2013 UTC

--- trunk/RomCheater/Docking/FloatingMemorySearcher.cs	2013/05/28 13:32:28	428
+++ trunk/RomCheater/Docking/FloatingMemorySearcher.cs	2013/05/28 15:16:05	429
@@ -1134,8 +1134,8 @@ namespace RomCheater.Docking
                 using (GenericMemoryProvider provider = new GenericMemoryProvider((IAcceptsProcessAndConfig)this))
                 {
                     provider.OpenProvider();
-                    int count = (int)(MemoryRangeSize - MemoryRangeStart) / (int)STEP_SIZE;
-                    SearchResultWriter writer = new SearchResultWriter(count);
+                    int count = (int)((MemoryRangeSize - MemoryRangeStart) / STEP_SIZE);
+                    SearchResultWriter writer = new SearchResultWriter((int)(count));
                     provider.OnBytesRead += new BaseEventHandler<OnBytesReadEventArgs>(search_provider_OnBytesRead);
                     provider.ReadProcessMemoryAtOnce(MemoryRangeStart, (MemoryRangeSize - MemoryRangeStart), writer);
                     provider.CloseProvider();