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

Comparing trunk/Win32/Sojaner.MemoryScanner/MemoryScanner.cs (file contents):
Revision 445 by william, Tue May 28 15:16:05 2013 UTC vs.
Revision 446 by william, Sun Jun 2 19:52:03 2013 UTC

# Line 319 | Line 319 | namespace Sojaner.MemoryScanner
319                      byte[] bigMem = mem.Read();
320                      count += bigMem.Length;
321                      if (this.OnBytesRead != null)
322 <                        this.OnBytesRead.Invoke(new OnBytesReadEventArgs(this, UserState, bigMem, j, bytesToRead));
322 >                    {
323 >                        OnBytesReadEventArgs t = new OnBytesReadEventArgs(this, UserState, bigMem, j, bytesToRead);
324 >                        this.OnBytesRead.Invoke(t);
325 >                        if (t.Canceled)
326 >                        {
327 >                            bigMem = null;
328 >                            break;
329 >                        }
330 >                        
331 >                    }
332                      bigMem = null;
333                  }
334              }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines