The fix was to rearrange the code so the assert isn't necessary and removed it. Fixes TFS bug 1199569.
[tfs-changeset: 1504713]
EX_TRY
{
FAULT_NOT_FATAL();
+ szExprToDisplay = &g_szExprWithStack2[0];
strcpy(szExprToDisplay, szExpr);
- _ASSERTE(szExprToDisplay == g_szExprWithStack2);
strcat_s(szExprToDisplay, _countof(g_szExprWithStack2), "\n\n");
GetStringFromStackLevels(1, 10, szExprToDisplay + strlen(szExprToDisplay));
- szExprToDisplay = &g_szExprWithStack2[0];
fGotStackTrace = TRUE;
}
EX_CATCH