Bug in CMemDlgTemplateT::AddControl

Socrat
2014-04-08
2014-04-09
  • Socrat
    Socrat
    2014-04-08

    The mention function has an error that causes crash in 64-bit version due to wrong pointer alignment in the line:

        // DWORD align data
        m_pPtr = (LPBYTE)(DWORD_PTR)((DWORD)(DWORD_PTR)(m_pPtr + 3) & (~3));
    

    Please fix it.