Commit 043ecca3 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

comctl32: Fix DPA_GetPtr() prototype.

parent 56b16ff4
......@@ -524,9 +524,9 @@ HDPA WINAPI DPA_Clone (const HDPA hdpa, HDPA hdpaNew)
* Success: pointer
* Failure: NULL
*/
LPVOID WINAPI DPA_GetPtr (HDPA hdpa, INT nIndex)
LPVOID WINAPI DPA_GetPtr (HDPA hdpa, INT_PTR nIndex)
{
TRACE("(%p %d)\n", hdpa, nIndex);
TRACE("(%p %ld)\n", hdpa, nIndex);
if (!hdpa)
return NULL;
......@@ -535,7 +535,7 @@ LPVOID WINAPI DPA_GetPtr (HDPA hdpa, INT nIndex)
return NULL;
}
if ((nIndex < 0) || (nIndex >= hdpa->nItemCount)) {
WARN("not enough pointers in array (%d vs %d).\n",nIndex,hdpa->nItemCount);
WARN("not enough pointers in array (%ld vs %d).\n",nIndex,hdpa->nItemCount);
return NULL;
}
......
......@@ -49,7 +49,7 @@ static PVOID (WINAPI *pDPA_DeletePtr)(HDPA,INT);
static BOOL (WINAPI *pDPA_Destroy)(HDPA);
static VOID (WINAPI *pDPA_DestroyCallback)(HDPA,PFNDPAENUMCALLBACK,PVOID);
static VOID (WINAPI *pDPA_EnumCallback)(HDPA,PFNDPAENUMCALLBACK,PVOID);
static INT (WINAPI *pDPA_GetPtr)(HDPA,INT);
static PVOID (WINAPI *pDPA_GetPtr)(HDPA,INT_PTR);
static INT (WINAPI *pDPA_GetPtrIndex)(HDPA,PVOID);
static BOOL (WINAPI *pDPA_Grow)(HDPA,INT);
static INT (WINAPI *pDPA_InsertPtr)(HDPA,INT,PVOID);
......
......@@ -5170,7 +5170,7 @@ BOOL WINAPI DPA_Destroy(HDPA);
LPVOID WINAPI DPA_DeletePtr(HDPA, INT);
BOOL WINAPI DPA_DeleteAllPtrs(HDPA);
BOOL WINAPI DPA_SetPtr(HDPA, INT, LPVOID);
LPVOID WINAPI DPA_GetPtr(HDPA, INT);
LPVOID WINAPI DPA_GetPtr(HDPA, INT_PTR);
INT WINAPI DPA_GetPtrIndex(HDPA, LPCVOID);
ULONGLONG WINAPI DPA_GetSize(HDPA);
BOOL WINAPI DPA_Grow(HDPA, INT);
......
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