Skip to content

Instantly share code, notes, and snippets.

@heejune
Created May 24, 2015 13:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heejune/1e75b323e596eaafa21f to your computer and use it in GitHub Desktop.
Save heejune/1e75b323e596eaafa21f to your computer and use it in GitHub Desktop.
Mixing CRT link type will cause debug assert when it freed
if (pHead->pBlockHeaderPrev)
{
pHead->pBlockHeaderPrev->pBlockHeaderNext = pHead->pBlockHeaderNext;
}
else
{
_ASSERTE(_pFirstBlock == pHead);
_pFirstBlock = pHead->pBlockHeaderNext;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment