Sync with trunk r43000
[reactos.git] / reactos / subsystems / win32 / win32k / ntuser / painting.c
index 0ba0176..9d57480 100644 (file)
@@ -1666,7 +1666,7 @@ BOOL UserDrawCaption(
         && !(Wnd->ExStyle & WS_EX_TOOLWINDOW);
    }
    else
-     HasIcon = (BOOL) hIcon;
+     HasIcon = (hIcon != 0);
 
    IconWidth = UserGetSystemMetrics(SM_CXSIZE) + Padding;