[COMCTL32] -DrawShadowText: Don't print an error when GdiAlphaBlend fails. This can...
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Mon, 14 Aug 2017 15:51:12 +0000 (15:51 +0000)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Mon, 14 Aug 2017 15:51:12 +0000 (15:51 +0000)
svn path=/trunk/; revision=75535

reactos/dll/win32/comctl32/commctrl.c

index 443b389..e091ccc 100644 (file)
@@ -1950,8 +1950,7 @@ int WINAPI DrawShadowText(HDC hdc, LPCWSTR pszText, UINT cch, RECT *prc, DWORD d
     bf.BlendFlags = 0;
     bf.SourceConstantAlpha = 255;
     bf.AlphaFormat = AC_SRC_ALPHA;
-    if (!GdiAlphaBlend(hdc, prc->left + ixOffset, prc->top + iyOffset, bi.bmiHeader.biWidth, bi.bmiHeader.biHeight, hdcMem, 0, 0, bi.bmiHeader.biWidth, bi.bmiHeader.biHeight, bf))
-        ERR("GdiAlphaBlend failed: %lu\n", GetLastError());
+    GdiAlphaBlend(hdc, prc->left + ixOffset, prc->top + iyOffset, bi.bmiHeader.biWidth, bi.bmiHeader.biHeight, hdcMem, 0, 0, bi.bmiHeader.biWidth, bi.bmiHeader.biHeight, bf);
 
     /* Delete the helper bitmap */
     SelectObject(hdcMem, hbmOld);