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

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

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

revision 272 by william, Sun Jun 3 17:26:59 2012 UTC revision 273 by william, Sun Jun 3 21:26:28 2012 UTC
# Line 421  namespace Sojaner.MemoryScanner.MemoryPr Line 421  namespace Sojaner.MemoryScanner.MemoryPr
421          public virtual void ReadProcessMemory(int MemoryAddress, uint bytesToRead, out int bytesRead, out byte[] data)          public virtual void ReadProcessMemory(int MemoryAddress, uint bytesToRead, out int bytesRead, out byte[] data)
422          {          {
423              bytesRead = 0x00;              bytesRead = 0x00;
424              data = new byte[] { };              data = new byte[bytesToRead];
425              if (!EnsureProviderIsOpen()) { return; }              if (!EnsureProviderIsOpen()) { return; }
426              try { provider.ReadProcessMemory(MemoryAddress, bytesToRead, out bytesRead, out data); }              try { provider.ReadProcessMemory(MemoryAddress, bytesToRead, out bytesRead, out data); }
427              catch { bytesRead = 0x00; data = new byte[] { }; }              catch { bytesRead = 0x00; data = new byte[] { }; }

Legend:
Removed from v.272  
changed lines
  Added in v.273

  ViewVC Help
Powered by ViewVC 1.1.22