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
2bcf38d3
Commit
2bcf38d3
authored
Jun 25, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Jun 26, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Fix some test failures with comctl32 < 5.80.
parent
ab750ba2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
toolbar.c
dlls/comctl32/tests/toolbar.c
+14
-1
No files found.
dlls/comctl32/tests/toolbar.c
View file @
2bcf38d3
...
...
@@ -415,7 +415,7 @@ static void test_add_bitmap(void)
ok(strcmp(_buf, (tab)[_i]) == 0, "Invalid string #%d - '%s' vs '%s'\n", _i, (tab)[_i], _buf); \
} \
ok(SendMessageA(hToolbar, TB_GETSTRING, MAKEWPARAM(260, (count)), (LPARAM)_buf) == -1, \
"Too many string in table\n"); \
"Too many string
s
in table\n"); \
}
static
void
test_add_string
(
void
)
...
...
@@ -432,10 +432,17 @@ static void test_add_string(void)
HWND
hToolbar
=
NULL
;
TBBUTTON
button
;
int
ret
;
CHAR
buf
[
260
];
rebuild_toolbar
(
&
hToolbar
);
ret
=
SendMessageA
(
hToolbar
,
TB_ADDSTRINGA
,
0
,
(
LPARAM
)
test1
);
ok
(
ret
==
0
,
"TB_ADDSTRINGA - unexpected return %d
\n
"
,
ret
);
ret
=
SendMessageA
(
hToolbar
,
TB_GETSTRING
,
MAKEWPARAM
(
260
,
1
),
(
LPARAM
)
buf
);
if
(
ret
==
0
)
{
win_skip
(
"TB_GETSTRING needs 5.80
\n
"
);
return
;
}
CHECK_STRING_TABLE
(
2
,
ret1
);
ret
=
SendMessageA
(
hToolbar
,
TB_ADDSTRINGA
,
0
,
(
LPARAM
)
test2
);
ok
(
ret
==
2
,
"TB_ADDSTRINGA - unexpected return %d
\n
"
,
ret
);
...
...
@@ -1281,6 +1288,12 @@ static void test_getstring(void)
ok
(
hToolbar
!=
NULL
,
"Toolbar creation problem
\n
"
);
r
=
SendMessage
(
hToolbar
,
TB_GETSTRING
,
MAKEWPARAM
(
0
,
0
),
0
);
if
(
r
==
0
)
{
win_skip
(
"TB_GETSTRING and TB_GETSTRINGW need 5.80
\n
"
);
DestroyWindow
(
hToolbar
);
return
;
}
expect
(
-
1
,
r
);
r
=
SendMessage
(
hToolbar
,
TB_GETSTRINGW
,
MAKEWPARAM
(
0
,
0
),
0
);
expect
(
-
1
,
r
);
...
...
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