diff --git a/reactos/win32ss/user/ntuser/painting.c b/reactos/win32ss/user/ntuser/painting.c index c6335fb800b..3b1d693edc2 100644 --- a/reactos/win32ss/user/ntuser/painting.c +++ b/reactos/win32ss/user/ntuser/painting.c @@ -2143,9 +2143,13 @@ BOOL UserDrawCaption( UserDrawIconEx(hDc, x, y, pIcon, cx, cy, 0, NULL, DI_NORMAL); UserDereferenceObject(pIcon); } + else + { + HasIcon = FALSE; + } } - if (hIcon) + if (HasIcon) Rect.left += Rect.bottom - Rect.top; if((uFlags & DC_TEXT))