comctl32: Don't draw text when the number of text lines has been set to zero.

This commit is contained in:
Amine Khaldi 2011-04-24 17:56:30 +01:00 committed by Alexandre Julliard
parent 9483b3ba86
commit 942aa70a0e
1 changed files with 1 additions and 1 deletions

View File

@ -574,7 +574,7 @@ TOOLBAR_DrawString (const TOOLBAR_INFO *infoPtr, RECT *rcText, LPCWSTR lpText,
UINT state = tbcd->nmcd.uItemState;
/* draw text */
if (lpText) {
if (lpText && infoPtr->nMaxTextRows > 0) {
TRACE("string=%s rect=(%s)\n", debugstr_w(lpText),
wine_dbgstr_rect(rcText));