title: error C2297: '*' : illegal, right operand has type 'BYTE *'
body: <p>Why is giving this error on this line?</p>
  
  <pre><code>*(BYTE*)(dwAddr + 5) = 0xC3;
  </code></pre>
  
  <p>Main.cpp (34): error C2297: '*': illegal, right operand has type 'BYTE *'</p>
  
  <pre><code>void PushRetHook(DWORD dwAddr, LPVOID dwNew, int size)
  {
      DWORD OldProt;
      VirtualProtect((void*)dwAddr, size, PAGE_EXECUTE_READWRITE, &amp;OldProt);
      memset((void*)(dwAddr), 0x90, size);
      *(BYTE*)dwAddr = 0x68;
      *(DWORD*)(dwAddr + 1) = (DWORD)dwNew
      *(BYTE*)(dwAddr + 5) = 0xC3;
      VirtualProtect((void*)(dwAddr), size, OldProt, &amp;OldProt);
  }
  </code></pre>