comctl32: Cast-qual warning fix (Resend)

Andrew Talbot Andrew.Talbot at talbotville.com
Thu Jul 19 13:42:22 CDT 2007


What is wrong with this patch, please?

Thanks,

-- Andy.
---
Changelog:
    comctl32: Cast-qual warning fix.

diff -urN a/dlls/comctl32/commctrl.c b/dlls/comctl32/commctrl.c
--- a/dlls/comctl32/commctrl.c	2007-06-22 13:37:12.000000000 +0100
+++ b/dlls/comctl32/commctrl.c	2007-07-16 22:12:14.000000000 +0100
@@ -1531,7 +1531,9 @@
 int WINAPI DrawShadowText(HDC hdc, LPCWSTR pszText, UINT cch, const RECT *pRect, DWORD dwFlags,
                           COLORREF crText, COLORREF crShadow, int ixOffset, int iyOffset)
 {
+    RECT rect = *pRect;
+
     FIXME("(%p, %s, %d, %p, %d, 0x%08x, 0x%08x, %d, %d): stub\n", hdc, debugstr_w(pszText), cch, pRect, dwFlags,
                                                                   crText, crShadow, ixOffset, iyOffset);
-    return DrawTextW(hdc, pszText, cch, (LPRECT)pRect, DT_LEFT);
+    return DrawTextW(hdc, pszText, cch, &rect, DT_LEFT);
 }



More information about the wine-patches mailing list