diff --git a/dlls/comctl32/status.c b/dlls/comctl32/status.c index ad099c9beef..67c9298ece3 100644 --- a/dlls/comctl32/status.c +++ b/dlls/comctl32/status.c @@ -455,7 +455,7 @@ STATUSBAR_GetTextLength (STATUS_INFO *infoPtr, INT nPart) else part = &infoPtr->parts[nPart]; - if (part->text) + if ((~part->style & SBT_OWNERDRAW) && part->text) result = strlenW(part->text); else result = 0;