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
16945559
Commit
16945559
authored
Jun 02, 2011
by
Marko Nikolic
Committed by
Alexandre Julliard
Jun 03, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Removed sign comparison warning in tab tests.
parent
687b030c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
tab.c
dlls/comctl32/tests/tab.c
+11
-10
No files found.
dlls/comctl32/tests/tab.c
View file @
16945559
...
@@ -1254,7 +1254,7 @@ static void test_removeimage(void)
...
@@ -1254,7 +1254,7 @@ static void test_removeimage(void)
static
void
test_delete_selection
(
void
)
static
void
test_delete_selection
(
void
)
{
{
HWND
hTab
;
HWND
hTab
;
DWORD
ret
;
INT
ret
;
hTab
=
createFilledTabControl
(
parent_wnd
,
TCS_FIXEDWIDTH
,
TCIF_TEXT
|
TCIF_IMAGE
,
4
);
hTab
=
createFilledTabControl
(
parent_wnd
,
TCS_FIXEDWIDTH
,
TCIF_TEXT
|
TCIF_IMAGE
,
4
);
ok
(
hTab
!=
NULL
,
"Failed to create tab control
\n
"
);
ok
(
hTab
!=
NULL
,
"Failed to create tab control
\n
"
);
...
@@ -1312,8 +1312,8 @@ static void test_TCM_SETITEMEXTRA(void)
...
@@ -1312,8 +1312,8 @@ static void test_TCM_SETITEMEXTRA(void)
static
void
test_TCS_OWNERDRAWFIXED
(
void
)
static
void
test_TCS_OWNERDRAWFIXED
(
void
)
{
{
LPARAM
lparam
,
lparam2
;
LPARAM
lparam
;
ULONG_PTR
itemdata
;
ULONG_PTR
itemdata
,
itemdata2
;
TCITEMA
item
;
TCITEMA
item
;
HWND
hTab
;
HWND
hTab
;
BOOL
ret
;
BOOL
ret
;
...
@@ -1338,7 +1338,7 @@ static void test_TCS_OWNERDRAWFIXED(void)
...
@@ -1338,7 +1338,7 @@ static void test_TCS_OWNERDRAWFIXED(void)
itemdata
=
0
;
itemdata
=
0
;
memset
(
&
itemdata
,
0xde
,
4
);
memset
(
&
itemdata
,
0xde
,
4
);
ok
(
g_drawitem
.
itemData
==
itemdata
,
"got
%lx, expected
%lx
\n
"
,
g_drawitem
.
itemData
,
itemdata
);
ok
(
g_drawitem
.
itemData
==
itemdata
,
"got
0x%lx, expected 0x
%lx
\n
"
,
g_drawitem
.
itemData
,
itemdata
);
DestroyWindow
(
hTab
);
DestroyWindow
(
hTab
);
...
@@ -1368,7 +1368,8 @@ static void test_TCS_OWNERDRAWFIXED(void)
...
@@ -1368,7 +1368,8 @@ static void test_TCS_OWNERDRAWFIXED(void)
ShowWindow
(
hTab
,
SW_SHOW
);
ShowWindow
(
hTab
,
SW_SHOW
);
RedrawWindow
(
hTab
,
NULL
,
0
,
RDW_UPDATENOW
);
RedrawWindow
(
hTab
,
NULL
,
0
,
RDW_UPDATENOW
);
ok
(
*
(
ULONG_PTR
*
)
g_drawitem
.
itemData
==
lparam
,
"got %lx, expected %lx
\n
"
,
g_drawitem
.
itemData
,
lparam
);
memset
(
&
itemdata
,
0xde
,
sizeof
(
ULONG_PTR
));
ok
(
*
(
ULONG_PTR
*
)
g_drawitem
.
itemData
==
itemdata
,
"got 0x%lx, expected 0x%lx
\n
"
,
g_drawitem
.
itemData
,
itemdata
);
DestroyWindow
(
hTab
);
DestroyWindow
(
hTab
);
...
@@ -1397,11 +1398,11 @@ static void test_TCS_OWNERDRAWFIXED(void)
...
@@ -1397,11 +1398,11 @@ static void test_TCS_OWNERDRAWFIXED(void)
ShowWindow
(
hTab
,
SW_SHOW
);
ShowWindow
(
hTab
,
SW_SHOW
);
RedrawWindow
(
hTab
,
NULL
,
0
,
RDW_UPDATENOW
);
RedrawWindow
(
hTab
,
NULL
,
0
,
RDW_UPDATENOW
);
lparam
=
0
;
itemdata
=
itemdata2
=
0
;
memset
(
&
lparam
,
0xde
,
4
);
memset
(
&
itemdata
,
0xde
,
4
);
memset
(
&
lparam
2
,
0xde
,
sizeof
(
LPARAM
)
-
1
);
memset
(
&
itemdata
2
,
0xde
,
sizeof
(
LPARAM
)
-
1
);
ok
(
g_drawitem
.
itemData
==
lparam
||
broken
(
g_drawitem
.
itemData
==
lparam
2
)
/* win98 */
,
ok
(
g_drawitem
.
itemData
==
itemdata
||
broken
(
g_drawitem
.
itemData
==
itemdata
2
)
/* win98 */
,
"got 0x%lx, expected 0x%lx
\n
"
,
g_drawitem
.
itemData
,
lparam
);
"got 0x%lx, expected 0x%lx
\n
"
,
g_drawitem
.
itemData
,
itemdata
);
DestroyWindow
(
hTab
);
DestroyWindow
(
hTab
);
}
}
...
...
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