1 Mar
2016
1 Mar
'16
8:42 a.m.
Alistair Leslie-Hughes <leslie_alistair(a)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. -- Alexandre Julliard julliard(a)winehq.org