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
7044ac87
Commit
7044ac87
authored
Sep 10, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 11, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/dpa: Fix DPA_Merge() for DPAM_INTERSECT option.
parent
e97fcdd1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
11 deletions
+7
-11
dpa.c
dlls/comctl32/dpa.c
+1
-1
dpa.c
dlls/comctl32/tests/dpa.c
+6
-10
No files found.
dlls/comctl32/dpa.c
View file @
7044ac87
...
...
@@ -311,7 +311,7 @@ BOOL WINAPI DPA_Merge (HDPA hdpa1, HDPA hdpa2, DWORD dwFlags,
/* Now delete the extra item in DPA1 */
PVOID
ptr
;
ptr
=
DPA_DeletePtr
(
hdpa1
,
hdpa1
->
nItemCount
-
1
);
ptr
=
DPA_DeletePtr
(
hdpa1
,
nIndex
);
(
pfnMerge
)(
DPAMM_DELETE
,
ptr
,
NULL
,
lParam
);
}
...
...
dlls/comctl32/tests/dpa.c
View file @
7044ac87
...
...
@@ -396,11 +396,9 @@ static void test_DPA_Merge(void)
memset
(
nMessages
,
0
,
sizeof
(
nMessages
));
pDPA_Merge
(
dpa2
,
dpa
,
DPAM_INTERSECT
,
CB_CmpLT
,
CB_MergeDeleteOddSrc
,
0xdeadbeef
);
todo_wine
{
rc
=
CheckDPA
(
dpa2
,
0x246
,
&
dw
);
ok
(
rc
,
"dw=0x%x
\n
"
,
dw
);
}
rc
=
CheckDPA
(
dpa2
,
0x246
,
&
dw
);
ok
(
rc
,
"dw=0x%x
\n
"
,
dw
);
expect
(
3
,
nMessages
[
DPAMM_MERGE
]);
expect
(
3
,
nMessages
[
DPAMM_DELETE
]);
expect
(
0
,
nMessages
[
DPAMM_INSERT
]);
...
...
@@ -415,11 +413,9 @@ static void test_DPA_Merge(void)
memset
(
nMessages
,
0
,
sizeof
(
nMessages
));
pDPA_Merge
(
dpa2
,
dpa
,
DPAM_INTERSECT
,
CB_CmpLT
,
CB_MergeInsertSrc
,
0xdeadbeef
);
todo_wine
{
rc
=
CheckDPA
(
dpa2
,
0x135
,
&
dw
);
ok
(
rc
,
"dw=0x%x
\n
"
,
dw
);
}
rc
=
CheckDPA
(
dpa2
,
0x135
,
&
dw
);
ok
(
rc
,
"dw=0x%x
\n
"
,
dw
);
expect
(
3
,
nMessages
[
DPAMM_MERGE
]);
expect
(
6
,
nMessages
[
DPAMM_DELETE
]);
expect
(
0
,
nMessages
[
DPAMM_INSERT
]);
...
...
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