Re: [PATCH] user32/text: Stop crash when Tab Length is zero
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
3574
Age (days ago)
3574
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard