Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
28998999
Commit
28998999
authored
Sep 13, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 15, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/dpa: Implement DPA_GetSize().
parent
c1513c6b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
2 deletions
+24
-2
comctl32.spec
dlls/comctl32/comctl32.spec
+1
-0
dpa.c
dlls/comctl32/dpa.c
+22
-2
commctrl.h
include/commctrl.h
+1
-0
No files found.
dlls/comctl32/comctl32.spec
View file @
28998999
...
...
@@ -125,6 +125,7 @@
@ stdcall DestroyPropertySheetPage(long)
@ stdcall -private DllGetVersion(ptr)
@ stdcall -private DllInstall(long wstr)
@ stdcall DPA_GetSize(ptr)
@ stdcall DrawShadowText(long wstr long ptr long long long long long)
@ stdcall DrawStatusText(long ptr ptr long) DrawStatusTextA
@ stdcall DrawStatusTextW(long ptr wstr long)
...
...
dlls/comctl32/dpa.c
View file @
28998999
...
...
@@ -45,14 +45,14 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
dpa
);
struct
_DPA
typedef
struct
_DPA
{
INT
nItemCount
;
LPVOID
*
ptrs
;
HANDLE
hHeap
;
INT
nGrow
;
INT
nMaxCount
;
};
}
DPA
;
typedef
struct
_STREAMDATA
{
...
...
@@ -997,3 +997,23 @@ void WINAPI DPA_DestroyCallback (HDPA hdpa, PFNDPAENUMCALLBACK enumProc,
DPA_EnumCallback
(
hdpa
,
enumProc
,
lParam
);
DPA_Destroy
(
hdpa
);
}
/**************************************************************************
* DPA_GetSize [COMCTL32.@]
*
* Returns all array allocated memory size
*
* PARAMS
* hdpa [I] handle to the dynamic pointer array
*
* RETURNS
* Size in bytes
*/
ULONGLONG
WINAPI
DPA_GetSize
(
HDPA
hdpa
)
{
TRACE
(
"(%p)
\n
"
,
hdpa
);
if
(
!
hdpa
)
return
0
;
return
sizeof
(
DPA
)
+
hdpa
->
nMaxCount
*
sizeof
(
PVOID
);
}
include/commctrl.h
View file @
28998999
...
...
@@ -5003,6 +5003,7 @@ BOOL WINAPI DPA_DeleteAllPtrs(HDPA);
BOOL
WINAPI
DPA_SetPtr
(
HDPA
,
INT
,
LPVOID
);
LPVOID
WINAPI
DPA_GetPtr
(
HDPA
,
INT
);
INT
WINAPI
DPA_GetPtrIndex
(
HDPA
,
LPCVOID
);
ULONGLONG
WINAPI
DPA_GetSize
(
HDPA
);
BOOL
WINAPI
DPA_Grow
(
HDPA
,
INT
);
INT
WINAPI
DPA_InsertPtr
(
HDPA
,
INT
,
LPVOID
);
BOOL
WINAPI
DPA_Sort
(
HDPA
,
PFNDPACOMPARE
,
LPARAM
);
...
...
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