/[RomCheater]/trunk/RomCheater/Docking/MemorySearch/SearchPatcher.cs
ViewVC logotype

Diff of /trunk/RomCheater/Docking/MemorySearch/SearchPatcher.cs

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

--- trunk/RomCheater/Docking/MemorySearch/SearchPatcher.cs	2012/06/03 13:21:51	243
+++ trunk/RomCheater/Docking/MemorySearch/SearchPatcher.cs	2012/06/03 16:09:05	249
@@ -106,9 +106,10 @@
         }
         private void btnOK_Click(object sender, EventArgs e)
         {
-            uint Address = txtAddress.ToUInt32();
+            int Address = txtAddress.ToInt32();
 
             GenericMemoryProvider provider = new GenericMemoryProvider((IAcceptsProcessAndConfig)this);
+            provider.OpenProvider();
             switch (DataType)
             {
                 case SearchDataTypes._8bits:
@@ -128,6 +129,7 @@
                     else { provider.PatchMemory(Address, txtValue.ToInt64()); }
                     break;
             }
+            provider.CloseProvider();
             this.Close();
         }
 

 

  ViewVC Help
Powered by ViewVC 1.1.22