diff --git a/dlls/comctl32/comctl32.h b/dlls/comctl32/comctl32.h index 872638dc873..1f2f63eb9fc 100644 --- a/dlls/comctl32/comctl32.h +++ b/dlls/comctl32/comctl32.h @@ -183,15 +183,15 @@ DWORD WINAPI GetSize (LPVOID); INT WINAPI Str_GetPtrA (LPCSTR, LPSTR, INT); INT WINAPI Str_GetPtrW (LPCWSTR, LPWSTR, INT); -INT WINAPI DPA_GetPtrIndex (const HDPA, LPVOID); -BOOL WINAPI DPA_Grow (const HDPA, INT); +INT WINAPI DPA_GetPtrIndex (HDPA, LPCVOID); +BOOL WINAPI DPA_Grow (HDPA, INT); #define DPAM_NOSORT 0x0001 #define DPAM_INSERT 0x0004 #define DPAM_DELETE 0x0008 typedef PVOID (CALLBACK *PFNDPAMERGE)(DWORD,PVOID,PVOID,LPARAM); -BOOL WINAPI DPA_Merge (const HDPA, const HDPA, DWORD, PFNDPACOMPARE, PFNDPAMERGE, LPARAM); +BOOL WINAPI DPA_Merge (HDPA, HDPA, DWORD, PFNDPACOMPARE, PFNDPAMERGE, LPARAM); #define DPA_GetPtrCount(hdpa) (*(INT*)(hdpa)) diff --git a/dlls/comctl32/dpa.c b/dlls/comctl32/dpa.c index a14c53079e8..bbad10df8d0 100644 --- a/dlls/comctl32/dpa.c +++ b/dlls/comctl32/dpa.c @@ -217,7 +217,7 @@ HRESULT WINAPI DPA_SaveStream (const HDPA hDpa, DPALOADPROC loadProc, * NOTES * No more information available yet! */ -BOOL WINAPI DPA_Merge (const HDPA hdpa1, const HDPA hdpa2, DWORD dwFlags, +BOOL WINAPI DPA_Merge (HDPA hdpa1, HDPA hdpa2, DWORD dwFlags, PFNDPACOMPARE pfnCompare, PFNDPAMERGE pfnMerge, LPARAM lParam) { @@ -381,7 +381,7 @@ BOOL WINAPI DPA_Destroy (const HDPA hdpa) * Success: TRUE * Failure: FALSE */ -BOOL WINAPI DPA_Grow (const HDPA hdpa, INT nGrow) +BOOL WINAPI DPA_Grow (HDPA hdpa, INT nGrow) { TRACE("(%p %d)\n", hdpa, nGrow); @@ -504,7 +504,7 @@ LPVOID WINAPI DPA_GetPtr (const HDPA hdpa, INT nIndex) * Success: index of the specified pointer * Failure: -1 */ -INT WINAPI DPA_GetPtrIndex (const HDPA hdpa, LPVOID p) +INT WINAPI DPA_GetPtrIndex (HDPA hdpa, LPCVOID p) { INT i;