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
ff0634df
Commit
ff0634df
authored
Mar 31, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 31, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/dsa: Implement DSA_Clone().
parent
db4dd8cd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
0 deletions
+37
-0
comctl32.spec
dlls/comctl32/comctl32.spec
+1
-0
dsa.c
dlls/comctl32/dsa.c
+36
-0
No files found.
dlls/comctl32/comctl32.spec
View file @
ff0634df
...
@@ -131,6 +131,7 @@
...
@@ -131,6 +131,7 @@
@ stdcall DrawShadowText(long wstr long ptr long long long long long)
@ stdcall DrawShadowText(long wstr long ptr long long long long long)
@ stdcall DrawStatusText(long ptr ptr long) DrawStatusTextA
@ stdcall DrawStatusText(long ptr ptr long) DrawStatusTextA
@ stdcall DrawStatusTextW(long ptr wstr long)
@ stdcall DrawStatusTextW(long ptr wstr long)
@ stdcall DSA_Clone(ptr)
@ stdcall FlatSB_EnableScrollBar (long long long)
@ stdcall FlatSB_EnableScrollBar (long long long)
@ stdcall FlatSB_GetScrollInfo (long long ptr)
@ stdcall FlatSB_GetScrollInfo (long long ptr)
@ stdcall FlatSB_GetScrollPos (long long)
@ stdcall FlatSB_GetScrollPos (long long)
...
...
dlls/comctl32/dsa.c
View file @
ff0634df
...
@@ -434,3 +434,39 @@ void WINAPI DSA_DestroyCallback (HDSA hdsa, PFNDSAENUMCALLBACK enumProc,
...
@@ -434,3 +434,39 @@ void WINAPI DSA_DestroyCallback (HDSA hdsa, PFNDSAENUMCALLBACK enumProc,
DSA_EnumCallback
(
hdsa
,
enumProc
,
lParam
);
DSA_EnumCallback
(
hdsa
,
enumProc
,
lParam
);
DSA_Destroy
(
hdsa
);
DSA_Destroy
(
hdsa
);
}
}
/**************************************************************************
* DSA_Clone [COMCTL32.@]
*
* Creates a copy of a dsa
*
* PARAMS
* hdsa [I] handle to the dynamic storage array
*
* RETURNS
* Cloned dsa
*/
HDSA
WINAPI
DSA_Clone
(
HDSA
hdsa
)
{
HDSA
dest
;
INT
i
;
TRACE
(
"(%p)
\n
"
,
hdsa
);
if
(
!
hdsa
)
return
NULL
;
dest
=
DSA_Create
(
hdsa
->
nItemSize
,
hdsa
->
nGrow
);
if
(
!
dest
)
return
NULL
;
for
(
i
=
0
;
i
<
hdsa
->
nItemCount
;
i
++
)
{
void
*
ptr
=
DSA_GetItemPtr
(
hdsa
,
i
);
if
(
DSA_InsertItem
(
dest
,
DA_LAST
,
ptr
)
==
-
1
)
{
DSA_Destroy
(
dest
);
return
NULL
;
}
}
return
dest
;
}
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