user: fix DrawTextExA/W on empty strings.
Rein Klazes
wijn at wanadoo.nl
Wed Jan 25 12:49:12 CST 2006
On Wed, 25 Jan 2006 07:49:57 -0800 (PST), you wrote:
>Hi Rein,
>
>- if (!str) return 0;
>+ if (!str || count == 0) return 0;
> if (count == -1) count = strlenW(str);
>- if (count == 0) return 0;
>+ if (count == 0) {
>+ if( flags & DT_CALCRECT) {
>+ rect->right = rect->left;
>+ rect->bottom = rect->top;
>+ }
>+ return 0;
>+ }
>
>This block will never be reached because of the if (!str || count == 0)
>test above.
Wrong, look again.
It can be coded a little bit more efficiently though. I will make a
different patch.
Rein.
Rein.
More information about the wine-devel
mailing list