Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
c9b8a285
Commit
c9b8a285
authored
Oct 23, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Oct 23, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleacc/tests: Fix some failures on Win98 up to W2K.
parent
29e49bbe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
main.c
dlls/oleacc/tests/main.c
+17
-2
No files found.
dlls/oleacc/tests/main.c
View file @
c9b8a285
...
...
@@ -24,8 +24,8 @@
static
void
test_getroletext
(
void
)
{
INT
ret
,
role
;
CHAR
buf
[
2
],
*
buff
,
buff2
[
100
]
;
WCHAR
bufW
[
2
],
*
buffW
,
buff2W
[
100
]
;
CHAR
buf
[
2
],
*
buff
;
WCHAR
bufW
[
2
],
*
buffW
;
/* wrong role number */
ret
=
GetRoleTextA
(
-
1
,
NULL
,
0
);
...
...
@@ -103,11 +103,26 @@ static void test_getroletext(void)
/* check returned length for all roles */
for
(
role
=
0
;
role
<=
ROLE_SYSTEM_OUTLINEBUTTON
;
role
++
){
CHAR
buff2
[
100
];
WCHAR
buff2W
[
100
];
/* NT4 and W2K don't clear the buffer on a non existing role in the A-call */
memset
(
buff2
,
0
,
sizeof
(
buff2
));
ret
=
GetRoleTextA
(
role
,
NULL
,
0
);
/* Win98 up to W2K miss some of the roles */
if
(
role
>=
ROLE_SYSTEM_SPLITBUTTON
)
ok
(
ret
>
0
||
broken
(
ret
==
0
),
"Expected the role %d to be present
\n
"
,
role
);
else
ok
(
ret
>
0
,
"Expected the role to be present
\n
"
);
GetRoleTextA
(
role
,
buff2
,
sizeof
(
buff2
));
ok
(
ret
==
lstrlenA
(
buff2
),
"GetRoleTextA: returned length doesn't match returned buffer for role %d
\n
"
,
role
);
/* Win98 and WinMe don't clear the buffer on a non existing role in the W-call */
memset
(
buff2W
,
0
,
sizeof
(
buff2W
));
ret
=
GetRoleTextW
(
role
,
NULL
,
0
);
GetRoleTextW
(
role
,
buff2W
,
sizeof
(
buff2W
)
/
sizeof
(
WCHAR
));
ok
(
ret
==
lstrlenW
(
buff2W
),
...
...
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