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
fd79ce05
Commit
fd79ce05
authored
Jul 08, 2000
by
Andreas Mohr
Committed by
Alexandre Julliard
Jul 08, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DSA_InsertItem returns nIndex, not nItemCount.
parent
b43639e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
comctl32undoc.c
dlls/comctl32/comctl32undoc.c
+6
-6
No files found.
dlls/comctl32/comctl32undoc.c
View file @
fd79ce05
...
...
@@ -227,7 +227,7 @@ DPA_Merge (const HDPA hdpa1, const HDPA hdpa2, DWORD dwFlags,
hdpa1
->
nItemCount
,
hdpa2
->
nItemCount
);
/* preliminary hack - simply append the pointer list hdpa2 to hdpa1*/
/* preliminary hack - simply append the pointer list hdpa2 to hdpa1
*/
for
(
nCount
=
0
;
nCount
<
hdpa2
->
nItemCount
;
nCount
++
)
DPA_InsertPtr
(
hdpa1
,
hdpa1
->
nItemCount
+
1
,
hdpa2
->
ptrs
[
nCount
]);
...
...
@@ -822,7 +822,7 @@ Str_SetPtrW (LPWSTR *lppDest, LPCWSTR lpSrc)
/**************************************************************************
* The DSA-API is a set of functions to create and manipulate arrays of
* fix
sized
memory blocks. These arrays can store any kind of data
* fix
ed-size
memory blocks. These arrays can store any kind of data
* (strings, icons...).
*/
...
...
@@ -834,7 +834,7 @@ Str_SetPtrW (LPWSTR *lppDest, LPCWSTR lpSrc)
* nGrow [I] number of elements by which the array grows when it is filled
*
* RETURNS
* Success: pointer to a
array control structure. u
se this like a handle.
* Success: pointer to a
n array control structure. U
se this like a handle.
* Failure: NULL
*/
...
...
@@ -947,7 +947,7 @@ DSA_GetItemPtr (const HDSA hdsa, INT nIndex)
TRACE
(
"-- ret=%p
\n
"
,
pSrc
);
return
pSrc
;
return
pSrc
;
}
...
...
@@ -1042,7 +1042,7 @@ DSA_InsertItem (const HDSA hdsa, INT nIndex, LPVOID pSrc)
TRACE
(
"-- %d=%p [%s]
\n
"
,
i
,
p
,
debugstr_a
((
char
*
)
p
));
}
/* when nIndex > nItemCount then append */
/* when nIndex >
=
nItemCount then append */
if
(
nIndex
>=
hdsa
->
nItemCount
)
nIndex
=
hdsa
->
nItemCount
;
...
...
@@ -1076,7 +1076,7 @@ DSA_InsertItem (const HDSA hdsa, INT nIndex, LPVOID pSrc)
lpDest
,
pSrc
,
hdsa
->
nItemSize
);
memmove
(
lpDest
,
pSrc
,
hdsa
->
nItemSize
);
return
hdsa
->
nItemCount
;
return
nIndex
;
}
...
...
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