Allows DrawText(16|A|W) to get a NULL string as parameter.

This commit is contained in:
Eric Pouech 1999-12-12 19:38:17 +00:00 committed by Alexandre Julliard
parent 7fb732e597
commit a35e345c04
1 changed files with 2 additions and 1 deletions

View File

@ -208,7 +208,8 @@ INT16 WINAPI DrawText16( HDC16 hdc, LPCSTR str, INT16 i_count,
TRACE("%s, %d , [(%d,%d),(%d,%d)]\n",
debugstr_an (str, count), count,
rect->left, rect->top, rect->right, rect->bottom);
if (!str) return 0;
if (count == -1) count = strlen(str);
strPtr = str;