Alistair Leslie-Hughes leslie_alistair@hotmail.com writes:
@@ -948,7 +948,7 @@ INT WINAPI DrawTextExW( HDC hdc, LPWSTR str, INT i_count,
if (flags & DT_EXPANDTABS) {
int tabstop = ((flags & DT_TABSTOP) && dtp) ? dtp->iTabLength : 8;
int tabstop = ((flags & DT_TABSTOP) && dtp && dtp->iTabLength) ? dtp->iTabLength : 8;
You should test the resulting text size to show that this is the correct behavior.