Commit 28442721 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

Const correctness fixes.

parent 8e203745
...@@ -385,7 +385,7 @@ static HWND COMDLG32_FR_DoFindReplace( ...@@ -385,7 +385,7 @@ static HWND COMDLG32_FR_DoFindReplace(
hmod = (HMODULE)pdata->fr.hInstance; hmod = (HMODULE)pdata->fr.hInstance;
if(pdata->fr.Flags & FR_WINE_UNICODE) 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 else
{ {
......
...@@ -144,7 +144,7 @@ SEGPTR IMalloc16_fnRealloc(IMalloc16* iface,SEGPTR pv,DWORD cb) ...@@ -144,7 +144,7 @@ SEGPTR IMalloc16_fnRealloc(IMalloc16* iface,SEGPTR pv,DWORD cb)
/****************************************************************************** /******************************************************************************
* IMalloc16_GetSize [COMPOBJ.506] * IMalloc16_GetSize [COMPOBJ.506]
*/ */
DWORD IMalloc16_fnGetSize(const IMalloc16* iface,SEGPTR pv) DWORD IMalloc16_fnGetSize(IMalloc16* iface,SEGPTR pv)
{ {
IMalloc16Impl *This = (IMalloc16Impl *)iface; IMalloc16Impl *This = (IMalloc16Impl *)iface;
TRACE("(%p)->GetSize(%08lx)\n",This,pv); TRACE("(%p)->GetSize(%08lx)\n",This,pv);
...@@ -154,7 +154,7 @@ DWORD IMalloc16_fnGetSize(const IMalloc16* iface,SEGPTR pv) ...@@ -154,7 +154,7 @@ DWORD IMalloc16_fnGetSize(const IMalloc16* iface,SEGPTR pv)
/****************************************************************************** /******************************************************************************
* IMalloc16_DidAlloc [COMPOBJ.507] * IMalloc16_DidAlloc [COMPOBJ.507]
*/ */
INT16 IMalloc16_fnDidAlloc(const IMalloc16* iface,LPVOID pv) { INT16 IMalloc16_fnDidAlloc(IMalloc16* iface,LPVOID pv) {
IMalloc16 *This = (IMalloc16 *)iface; IMalloc16 *This = (IMalloc16 *)iface;
TRACE("(%p)->DidAlloc(%p)\n",This,pv); TRACE("(%p)->DidAlloc(%p)\n",This,pv);
return (INT16)-1; return (INT16)-1;
......
...@@ -284,7 +284,7 @@ static BOOL is_dib_monochrome( const BITMAPINFO* info ) ...@@ -284,7 +284,7 @@ static BOOL is_dib_monochrome( const BITMAPINFO* info )
} }
else /* assume BITMAPINFOHEADER */ else /* assume BITMAPINFOHEADER */
{ {
RGBQUAD *rgb = info->bmiColors; const RGBQUAD *rgb = info->bmiColors;
/* Check if the first color is black */ /* Check if the first color is black */
if ((rgb->rgbRed == 0) && (rgb->rgbGreen == 0) && if ((rgb->rgbRed == 0) && (rgb->rgbGreen == 0) &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment