comctl32: Constify some variables
Andrew Talbot
Andrew.Talbot at talbotville.com
Mon Mar 19 16:31:25 CDT 2007
Changelog:
comctl32: Constify some variables.
diff -urN a/dlls/comctl32/animate.c b/dlls/comctl32/animate.c
--- a/dlls/comctl32/animate.c 2007-02-23 12:19:58.000000000 +0000
+++ b/dlls/comctl32/animate.c 2007-03-19 21:09:38.000000000 +0000
@@ -100,7 +100,7 @@
(LPARAM)infoPtr->hwndSelf);
}
-static BOOL ANIMATE_LoadResW(ANIMATE_INFO *infoPtr, HINSTANCE hInst, LPWSTR lpName)
+static BOOL ANIMATE_LoadResW(ANIMATE_INFO *infoPtr, HINSTANCE hInst, LPCWSTR lpName)
{
static const WCHAR aviW[] = { 'A', 'V', 'I', 0 };
HRSRC hrsrc;
@@ -217,7 +217,7 @@
infoPtr->transparentColor = ANIMATE_COLOR_NONE;
}
-static void ANIMATE_TransparentBlt(ANIMATE_INFO *infoPtr, HDC hdcDest, HDC hdcSource)
+static void ANIMATE_TransparentBlt(ANIMATE_INFO const *infoPtr, HDC hdcDest, HDC hdcSource)
{
HDC hdcMask;
HBITMAP hbmMask;
@@ -251,8 +251,8 @@
static BOOL ANIMATE_PaintFrame(ANIMATE_INFO* infoPtr, HDC hDC)
{
- void *pBitmapData;
- LPBITMAPINFO pBitmapInfo;
+ void const *pBitmapData;
+ BITMAPINFO const *pBitmapInfo;
HDC hdcMem;
HBITMAP hbmOld;
int nOffsetX = 0;
@@ -825,7 +825,7 @@
}
-static BOOL ANIMATE_EraseBackground(ANIMATE_INFO *infoPtr, HDC hdc)
+static BOOL ANIMATE_EraseBackground(ANIMATE_INFO const *infoPtr, HDC hdc)
{
RECT rect;
HBRUSH hBrush = 0;
More information about the wine-patches
mailing list