title: Scanning process memory causes crash
body: <p>i have injected my DLL into process and i try to scan memory for addresses with same value as mine, but it results in a crash after i get 1st address , it should be 10 addresses</p>
  
  <pre><code>for(DWORD i = MEM_START; i&lt; MEM_END ;i++)
  {
      VirtualQuery((void*)i,pMemInfo,sizeof(MEMORY_BASIC_INFORMATION));
      if(pMemInfo-&gt;AllocationProtect == PAGE_READONLY || PAGE_EXECUTE_WRITECOPY || PAGE_READWRITE || PAGE_WRITECOMBINE)
      {
          if(*(DWORD*)i==1337)
          {
             addresses.push_back(i);
          }
      } 
  }
  </code></pre>
  
  <p>I believe my protection check is wrong but not quite sure.</p>