Sync to trunk r39350.
[reactos.git] / reactos / subsystems / win32 / win32k / ntuser / painting.c
index 809855e..d59d280 100644 (file)
@@ -1665,7 +1665,7 @@ BOOL UserDrawCaption(
         && !(Wnd->ExStyle & WS_EX_TOOLWINDOW);
    }
    else
-     HasIcon = (BOOL) hIcon;
+     HasIcon = (hIcon != 0);
 
    IconWidth = UserGetSystemMetrics(SM_CXSIZE) + Padding;