Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
043ecca3
Commit
043ecca3
authored
Mar 08, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Fix DPA_GetPtr() prototype.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
56b16ff4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
dpa.c
dlls/comctl32/dpa.c
+3
-3
dpa.c
dlls/comctl32/tests/dpa.c
+1
-1
commctrl.h
include/commctrl.h
+1
-1
No files found.
dlls/comctl32/dpa.c
View file @
043ecca3
...
...
@@ -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 %
l
d)
\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 (%
l
d vs %d).
\n
"
,
nIndex
,
hdpa
->
nItemCount
);
return
NULL
;
}
...
...
dlls/comctl32/tests/dpa.c
View file @
043ecca3
...
...
@@ -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
);
...
...
include/commctrl.h
View file @
043ecca3
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment