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 253 by william, Sun Jun 3 16:09:05 2012 UTC vs.
Revision 254 by william, Sun Jun 3 16:44:42 2012 UTC

--- trunk/Win32/Sojaner.MemoryScanner/MemoryScanner.cs	2012/06/03 16:41:16	253
+++ trunk/Win32/Sojaner.MemoryScanner/MemoryScanner.cs	2012/06/03 16:44:42	254
@@ -237,7 +237,7 @@ namespace Sojaner.MemoryScanner
         {
             try
             {
-                byte[] buffer = new byte[] { };
+                byte[] buffer = new byte[bytesToRead];
                 IntPtr ptrBytesRead;
                 ProcessMemoryReader.ProcessMemoryReaderApi.ReadProcessMemory(m_hProcess, (IntPtr)MemoryAddress, buffer, bytesToRead, out ptrBytesRead);
                 bytesRead = ptrBytesRead.ToInt32();