/[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

--- trunk/Win32/Sojaner.MemoryScanner/MemoryProviers/BaseMemoryProvider.cs	2012/06/03 21:25:47	272
+++ trunk/Win32/Sojaner.MemoryScanner/MemoryProviers/BaseMemoryProvider.cs	2012/06/03 21:26:28	273
@@ -421,7 +421,7 @@
         public virtual void ReadProcessMemory(int MemoryAddress, uint bytesToRead, out int bytesRead, out byte[] data)
         {
             bytesRead = 0x00;
-            data = new byte[] { };
+            data = new byte[bytesToRead];
             if (!EnsureProviderIsOpen()) { return; }
             try { provider.ReadProcessMemory(MemoryAddress, bytesToRead, out bytesRead, out data); }
             catch { bytesRead = 0x00; data = new byte[] { }; }

 

  ViewVC Help
Powered by ViewVC 1.1.22