Dangling pointer |
Post Reply |
Author | |
andreypir
Groupie Joined: 20 August 2015 Status: Offline Points: 10 |
Post Options
Thanks(0)
Posted: 26 March 2020 at 3:29pm |
This code in 19.1 returns a pointer to a deleted heap block: LPCTSTR CXTPFrameThemeVisualStudio2012::GetStyleResourceName() const { CString retVal("XTP_IDR_VS2012_STYLE"); return retVal; } In 17.3 it was correct, I am not sure what this bug was introduced for: LPCTSTR CXTPFrameThemeVisualStudio2012::GetStyleResourceName() const { return _T("XTP_IDR_VS2012_STYLE"); } |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |