Index: src/libchcore/DataBuffer.cpp =================================================================== diff -u -r548382442cbf7bed7f744b279ce3f66b54992724 -r71943917b6b34fa6e4f9045558c374322bddfd46 --- src/libchcore/DataBuffer.cpp (.../DataBuffer.cpp) (revision 548382442cbf7bed7f744b279ce3f66b54992724) +++ src/libchcore/DataBuffer.cpp (.../DataBuffer.cpp) (revision 71943917b6b34fa6e4f9045558c374322bddfd46) @@ -56,7 +56,6 @@ bool TBufferSizes::operator==(const TBufferSizes& bsSizes) const { - memcmp(m_auiSizes, bsSizes.m_auiSizes, sizeof(TBufferSizes)); for(int iIndex = 0; iIndex < eBuffer_Last; ++iIndex) { if(m_auiSizes[iIndex] != bsSizes.m_auiSizes[iIndex]) Index: src/libchcore/TBaseException.cpp =================================================================== diff -u -r8e19bdbb52f053c078c1a7f4e6938493374067af -r71943917b6b34fa6e4f9045558c374322bddfd46 --- src/libchcore/TBaseException.cpp (.../TBaseException.cpp) (revision 8e19bdbb52f053c078c1a7f4e6938493374067af) +++ src/libchcore/TBaseException.cpp (.../TBaseException.cpp) (revision 71943917b6b34fa6e4f9045558c374322bddfd46) @@ -50,7 +50,7 @@ void TBaseException::GetDetailedErrorInfo(wchar_t* pszBuffer, size_t stMaxBuffer) const { _snwprintf_s(pszBuffer, stMaxBuffer, _TRUNCATE, _T("%s\r\nError code: %ld\r\nFile: %s\r\nFunction: %s\r\nLine no: %lu"), - m_pszMsg, m_eErrorCode, m_pszFile, m_pszFunction, m_stLineNumber); + m_pszMsg, m_eErrorCode, m_pszFile, m_pszFunction, (unsigned long)m_stLineNumber); pszBuffer[stMaxBuffer - 1] = _T('\0'); } Index: src/libchcore/TCoreException.cpp =================================================================== diff -u -r548382442cbf7bed7f744b279ce3f66b54992724 -r71943917b6b34fa6e4f9045558c374322bddfd46 --- src/libchcore/TCoreException.cpp (.../TCoreException.cpp) (revision 548382442cbf7bed7f744b279ce3f66b54992724) +++ src/libchcore/TCoreException.cpp (.../TCoreException.cpp) (revision 71943917b6b34fa6e4f9045558c374322bddfd46) @@ -86,7 +86,7 @@ void TCoreWin32Exception::GetDetailedErrorInfo(wchar_t* pszBuffer, size_t stMaxBuffer) const { - _snwprintf_s(pszBuffer, stMaxBuffer, _TRUNCATE, _T("Error code: %ld\r\nWin32 error code: %lu\r\nFile: %s\r\nFunction: %s\r\nLine no: %lu"), m_eErrorCode, m_dwWin32ErrorCode, m_pszFile, m_pszFunction, m_stLineNumber); + _snwprintf_s(pszBuffer, stMaxBuffer, _TRUNCATE, _T("Error code: %ld\r\nWin32 error code: %lu\r\nFile: %s\r\nFunction: %s\r\nLine no: %lu"), m_eErrorCode, m_dwWin32ErrorCode, m_pszFile, m_pszFunction, (unsigned long)m_stLineNumber); pszBuffer[stMaxBuffer - 1] = _T('\0'); }