From 28442721fd0494263f8c6b671ee6dcb1873c93dc Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Mon, 12 Dec 2005 11:55:49 +0100 Subject: [PATCH] Const correctness fixes. --- dlls/commdlg/finddlg32.c | 2 +- dlls/ole32/ole16.c | 4 ++-- dlls/user/cursoricon.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/commdlg/finddlg32.c b/dlls/commdlg/finddlg32.c index 20f9e34fae6..6225773ac82 100644 --- a/dlls/commdlg/finddlg32.c +++ b/dlls/commdlg/finddlg32.c @@ -385,7 +385,7 @@ static HWND COMDLG32_FR_DoFindReplace( hmod = (HMODULE)pdata->fr.hInstance; if(pdata->fr.Flags & FR_WINE_UNICODE) { - htemplate = FindResourceW(hmod, (LPWSTR)pdata->fr.lpTemplateName, (LPWSTR)RT_DIALOG); + htemplate = FindResourceW(hmod, (LPCWSTR)pdata->fr.lpTemplateName, (LPWSTR)RT_DIALOG); } else { diff --git a/dlls/ole32/ole16.c b/dlls/ole32/ole16.c index f7d76f36e3a..15e054ff024 100644 --- a/dlls/ole32/ole16.c +++ b/dlls/ole32/ole16.c @@ -144,7 +144,7 @@ SEGPTR IMalloc16_fnRealloc(IMalloc16* iface,SEGPTR pv,DWORD cb) /****************************************************************************** * IMalloc16_GetSize [COMPOBJ.506] */ -DWORD IMalloc16_fnGetSize(const IMalloc16* iface,SEGPTR pv) +DWORD IMalloc16_fnGetSize(IMalloc16* iface,SEGPTR pv) { IMalloc16Impl *This = (IMalloc16Impl *)iface; TRACE("(%p)->GetSize(%08lx)\n",This,pv); @@ -154,7 +154,7 @@ DWORD IMalloc16_fnGetSize(const IMalloc16* iface,SEGPTR pv) /****************************************************************************** * IMalloc16_DidAlloc [COMPOBJ.507] */ -INT16 IMalloc16_fnDidAlloc(const IMalloc16* iface,LPVOID pv) { +INT16 IMalloc16_fnDidAlloc(IMalloc16* iface,LPVOID pv) { IMalloc16 *This = (IMalloc16 *)iface; TRACE("(%p)->DidAlloc(%p)\n",This,pv); return (INT16)-1; diff --git a/dlls/user/cursoricon.c b/dlls/user/cursoricon.c index 2e64d4acc09..c3bb046b29f 100644 --- a/dlls/user/cursoricon.c +++ b/dlls/user/cursoricon.c @@ -284,7 +284,7 @@ static BOOL is_dib_monochrome( const BITMAPINFO* info ) } else /* assume BITMAPINFOHEADER */ { - RGBQUAD *rgb = info->bmiColors; + const RGBQUAD *rgb = info->bmiColors; /* Check if the first color is black */ if ((rgb->rgbRed == 0) && (rgb->rgbGreen == 0) &&