Commit f63233d6 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

comctl32: Constify some variables.

parent eafbf45f
...@@ -380,7 +380,7 @@ void WINAPI FreeMRUList (HANDLE hMRUList) ...@@ -380,7 +380,7 @@ void WINAPI FreeMRUList (HANDLE hMRUList)
INT WINAPI FindMRUData (HANDLE hList, LPCVOID lpData, DWORD cbData, INT WINAPI FindMRUData (HANDLE hList, LPCVOID lpData, DWORD cbData,
LPINT lpRegNum) LPINT lpRegNum)
{ {
LPWINEMRULIST mp = (LPWINEMRULIST)hList; const WINEMRULIST *mp = (LPWINEMRULIST)hList;
INT ret; INT ret;
UINT i; UINT i;
LPSTR dataA = NULL; LPSTR dataA = NULL;
...@@ -726,7 +726,7 @@ static HANDLE CreateMRUListLazy_common(LPWINEMRULIST mp) ...@@ -726,7 +726,7 @@ static HANDLE CreateMRUListLazy_common(LPWINEMRULIST mp)
* *
* See CreateMRUListLazyA. * See CreateMRUListLazyA.
*/ */
HANDLE WINAPI CreateMRUListLazyW (LPCREATEMRULISTW lpcml, DWORD dwParam2, HANDLE WINAPI CreateMRUListLazyW (const CREATEMRULISTW *lpcml, DWORD dwParam2,
DWORD dwParam3, DWORD dwParam4) DWORD dwParam3, DWORD dwParam4)
{ {
LPWINEMRULIST mp; LPWINEMRULIST mp;
...@@ -760,7 +760,7 @@ HANDLE WINAPI CreateMRUListLazyW (LPCREATEMRULISTW lpcml, DWORD dwParam2, ...@@ -760,7 +760,7 @@ HANDLE WINAPI CreateMRUListLazyW (LPCREATEMRULISTW lpcml, DWORD dwParam2,
* RETURNS * RETURNS
* Handle to MRU list. * Handle to MRU list.
*/ */
HANDLE WINAPI CreateMRUListLazyA (LPCREATEMRULISTA lpcml, DWORD dwParam2, HANDLE WINAPI CreateMRUListLazyA (const CREATEMRULISTA *lpcml, DWORD dwParam2,
DWORD dwParam3, DWORD dwParam4) DWORD dwParam3, DWORD dwParam4)
{ {
LPWINEMRULIST mp; LPWINEMRULIST mp;
...@@ -787,7 +787,7 @@ HANDLE WINAPI CreateMRUListLazyA (LPCREATEMRULISTA lpcml, DWORD dwParam2, ...@@ -787,7 +787,7 @@ HANDLE WINAPI CreateMRUListLazyA (LPCREATEMRULISTA lpcml, DWORD dwParam2,
* *
* See CreateMRUListA. * See CreateMRUListA.
*/ */
HANDLE WINAPI CreateMRUListW (LPCREATEMRULISTW lpcml) HANDLE WINAPI CreateMRUListW (const CREATEMRULISTW *lpcml)
{ {
return CreateMRUListLazyW(lpcml, 0, 0, 0); return CreateMRUListLazyW(lpcml, 0, 0, 0);
} }
...@@ -803,7 +803,7 @@ HANDLE WINAPI CreateMRUListW (LPCREATEMRULISTW lpcml) ...@@ -803,7 +803,7 @@ HANDLE WINAPI CreateMRUListW (LPCREATEMRULISTW lpcml)
* RETURNS * RETURNS
* Handle to MRU list. * Handle to MRU list.
*/ */
HANDLE WINAPI CreateMRUListA (LPCREATEMRULISTA lpcml) HANDLE WINAPI CreateMRUListA (const CREATEMRULISTA *lpcml)
{ {
return CreateMRUListLazyA (lpcml, 0, 0, 0); return CreateMRUListLazyA (lpcml, 0, 0, 0);
} }
...@@ -830,8 +830,8 @@ HANDLE WINAPI CreateMRUListA (LPCREATEMRULISTA lpcml) ...@@ -830,8 +830,8 @@ HANDLE WINAPI CreateMRUListA (LPCREATEMRULISTA lpcml)
INT WINAPI EnumMRUListW (HANDLE hList, INT nItemPos, LPVOID lpBuffer, INT WINAPI EnumMRUListW (HANDLE hList, INT nItemPos, LPVOID lpBuffer,
DWORD nBufferSize) DWORD nBufferSize)
{ {
LPWINEMRULIST mp = (LPWINEMRULIST) hList; const WINEMRULIST *mp = (LPWINEMRULIST) hList;
LPWINEMRUITEM witem; const WINEMRUITEM *witem;
INT desired, datasize; INT desired, datasize;
if (nItemPos >= mp->cursize) return -1; if (nItemPos >= mp->cursize) return -1;
...@@ -855,7 +855,7 @@ INT WINAPI EnumMRUListW (HANDLE hList, INT nItemPos, LPVOID lpBuffer, ...@@ -855,7 +855,7 @@ INT WINAPI EnumMRUListW (HANDLE hList, INT nItemPos, LPVOID lpBuffer,
INT WINAPI EnumMRUListA (HANDLE hList, INT nItemPos, LPVOID lpBuffer, INT WINAPI EnumMRUListA (HANDLE hList, INT nItemPos, LPVOID lpBuffer,
DWORD nBufferSize) DWORD nBufferSize)
{ {
LPWINEMRULIST mp = (LPWINEMRULIST) hList; const WINEMRULIST *mp = (LPWINEMRULIST) hList;
LPWINEMRUITEM witem; LPWINEMRUITEM witem;
INT desired, datasize; INT desired, datasize;
DWORD lenA; DWORD lenA;
......
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