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
a52977dc
Commit
a52977dc
authored
Jan 03, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Fix pointer casting warnings on 64-bit.
parent
3e7ac7ea
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
dpa.c
dlls/comctl32/tests/dpa.c
+8
-8
subclass.c
dlls/comctl32/tests/subclass.c
+1
-1
toolbar.c
dlls/comctl32/tests/toolbar.c
+1
-1
No files found.
dlls/comctl32/tests/dpa.c
View file @
a52977dc
...
...
@@ -182,7 +182,7 @@ static BOOL CheckDPA(HDPA dpa, DWORD dwIn, PDWORD pdwOut)
do
{
pDPA_InsertPtr
(
dpa
,
0
,
(
PVOID
)(
dwIn
&
0xf
));
pDPA_InsertPtr
(
dpa
,
0
,
(
PVOID
)(
ULONG_PTR
)(
dwIn
&
0xf
));
dwIn
>>=
4
;
}
while
(
dwIn
);
...
...
@@ -242,9 +242,9 @@ static void test_dpa(void)
for
(
i
=
1
;
i
<=
6
;
i
++
)
{
INT
j
,
k
;
k
=
pDPA_GetPtrIndex
(
dpa
,
(
PVOID
)
i
);
k
=
pDPA_GetPtrIndex
(
dpa
,
(
PVOID
)
(
INT_PTR
)
i
);
/* Linear searches should work on unsorted DPAs */
j
=
pDPA_Search
(
dpa
,
(
PVOID
)
i
,
0
,
CB_CmpLT
,
0xdeadbeef
,
0
);
j
=
pDPA_Search
(
dpa
,
(
PVOID
)
(
INT_PTR
)
i
,
0
,
CB_CmpLT
,
0xdeadbeef
,
0
);
ok
(
j
==
k
,
"j=%d k=%d
\n
"
,
j
,
k
);
}
...
...
@@ -279,16 +279,16 @@ static void test_dpa(void)
INT
j
;
/* The array is in order so ptr == index+1 */
j
=
pDPA_GetPtrIndex
(
dpa
,
(
PVOID
)
i
);
j
=
pDPA_GetPtrIndex
(
dpa
,
(
PVOID
)
(
INT_PTR
)
i
);
ok
(
j
+
1
==
i
,
"j=%d i=%d
\n
"
,
j
,
i
);
j
=
pDPA_Search
(
dpa
,
(
PVOID
)
i
,
0
,
CB_CmpLT
,
0xdeadbeef
,
DPAS_SORTED
);
j
=
pDPA_Search
(
dpa
,
(
PVOID
)
(
INT_PTR
)
i
,
0
,
CB_CmpLT
,
0xdeadbeef
,
DPAS_SORTED
);
ok
(
j
+
1
==
i
,
"j=%d i=%d
\n
"
,
j
,
i
);
/* Linear searches respect iStart ... */
j
=
pDPA_Search
(
dpa
,
(
PVOID
)
i
,
i
+
1
,
CB_CmpLT
,
0xdeadbeef
,
0
);
j
=
pDPA_Search
(
dpa
,
(
PVOID
)
(
INT_PTR
)
i
,
i
+
1
,
CB_CmpLT
,
0xdeadbeef
,
0
);
ok
(
j
==
DPA_ERR
,
"j=%d
\n
"
,
j
);
/* ... but for a binary search it's ignored */
j
=
pDPA_Search
(
dpa
,
(
PVOID
)
i
,
i
+
1
,
CB_CmpLT
,
0xdeadbeef
,
DPAS_SORTED
);
j
=
pDPA_Search
(
dpa
,
(
PVOID
)
(
INT_PTR
)
i
,
i
+
1
,
CB_CmpLT
,
0xdeadbeef
,
DPAS_SORTED
);
todo_wine
ok
(
j
+
1
==
i
,
"j=%d i=%d
\n
"
,
j
,
i
);
}
...
...
@@ -331,7 +331,7 @@ static void test_dpa(void)
* should be bogus */
for
(
i
=
0
;
i
<
6
;
i
++
)
{
INT
j
=
pDPA_Search
(
dpa
,
(
PVOID
)
i
,
0
,
CB_CmpGT
,
0xdeadbeef
,
INT
j
=
pDPA_Search
(
dpa
,
(
PVOID
)
(
INT_PTR
)
i
,
0
,
CB_CmpGT
,
0xdeadbeef
,
DPAS_SORTED
|
DPAS_INSERTBEFORE
);
ok
(
j
!=
i
,
"i=%d
\n
"
,
i
);
}
...
...
dlls/comctl32/tests/subclass.c
View file @
a52977dc
...
...
@@ -234,7 +234,7 @@ static void test_subclass(void)
ok_sequence
(
Sub_AfterDeletedTest
,
"After Deleted"
);
pSetWindowSubclass
(
hwnd
,
WndProcSub
,
2
,
0
);
origProc3
=
(
WNDPROC
)
SetWindowLongPtr
(
hwnd
,
GWLP_WNDPROC
,
(
LONG
)
WndProc3
);
origProc3
=
(
WNDPROC
)
SetWindowLongPtr
(
hwnd
,
GWLP_WNDPROC
,
(
LONG
_PTR
)
WndProc3
);
SendMessage
(
hwnd
,
WM_USER
,
1
,
0
);
SendMessage
(
hwnd
,
WM_USER
,
2
,
0
);
ok_sequence
(
Sub_OldAfterNewTest
,
"Old after New"
);
...
...
dlls/comctl32/tests/toolbar.c
View file @
a52977dc
...
...
@@ -1151,7 +1151,7 @@ static void test_setrows(void)
memset
(
&
rc
,
0xCC
,
sizeof
(
rc
));
SendMessageA
(
hToolbar
,
TB_SETROWS
,
MAKELONG
(
tbrows_results
[
i
].
nRows
,
tbrows_results
[
i
].
bLarger
),
(
L
ONG
)
&
rc
);
(
L
PARAM
)
&
rc
);
rows
=
SendMessageA
(
hToolbar
,
TB_GETROWS
,
MAKELONG
(
0
,
0
),
MAKELONG
(
0
,
0
));
ok
(
rows
==
tbrows_results
[
i
].
expectedRows
,
...
...
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