/[RomCheater]/trunk/Win32/Sojaner.MemoryScanner/MemoryScanner.cs
ViewVC logotype

Diff of /trunk/Win32/Sojaner.MemoryScanner/MemoryScanner.cs

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

--- trunk/Win32/Sojaner.MemoryScanner/MemoryScanner.cs	2013/06/02 19:21:16	445
+++ trunk/Win32/Sojaner.MemoryScanner/MemoryScanner.cs	2013/06/02 19:52:03	446
@@ -319,7 +319,16 @@
                     byte[] bigMem = mem.Read();
                     count += bigMem.Length;
                     if (this.OnBytesRead != null)
-                        this.OnBytesRead.Invoke(new OnBytesReadEventArgs(this, UserState, bigMem, j, bytesToRead));
+                    {
+                        OnBytesReadEventArgs t = new OnBytesReadEventArgs(this, UserState, bigMem, j, bytesToRead);
+                        this.OnBytesRead.Invoke(t);
+                        if (t.Canceled)
+                        {
+                            bigMem = null;
+                            break;
+                        }
+                        
+                    }
                     bigMem = null;
                 }
             }

 

  ViewVC Help
Powered by ViewVC 1.1.22