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
212ce8b6
Commit
212ce8b6
authored
Dec 05, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Dec 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleacc/tests: Fix the test failures on Win9x/WinMe and Vista/W2K8.
parent
ebb31dbb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
main.c
dlls/oleacc/tests/main.c
+11
-4
No files found.
dlls/oleacc/tests/main.c
View file @
212ce8b6
...
...
@@ -33,7 +33,9 @@ static void test_getroletext(void)
buf
[
0
]
=
'*'
;
ret
=
GetRoleTextA
(
-
1
,
buf
,
2
);
ok
(
ret
==
0
,
"GetRoleTextA doesn't return zero on wrong role number, got %d
\n
"
,
ret
);
ok
(
buf
[
0
]
==
'*'
,
"GetRoleTextA modified buffer on wrong role number
\n
"
);
ok
(
buf
[
0
]
==
'*'
||
broken
(
buf
[
0
]
==
0
),
/* Win98 and WinMe */
"GetRoleTextA modified buffer on wrong role number
\n
"
);
buf
[
0
]
=
'*'
;
ret
=
GetRoleTextA
(
-
1
,
buf
,
0
);
ok
(
ret
==
0
,
"GetRoleTextA doesn't return zero on wrong role number, got %d
\n
"
,
ret
);
...
...
@@ -44,7 +46,9 @@ static void test_getroletext(void)
bufW
[
0
]
=
'*'
;
ret
=
GetRoleTextW
(
-
1
,
bufW
,
2
);
ok
(
ret
==
0
,
"GetRoleTextW doesn't return zero on wrong role number, got %d
\n
"
,
ret
);
ok
(
bufW
[
0
]
==
'\0'
,
"GetRoleTextW doesn't return NULL char on wrong role number
\n
"
);
ok
(
bufW
[
0
]
==
'\0'
||
broken
(
bufW
[
0
]
==
'*'
),
/* Win98 and WinMe */
"GetRoleTextW doesn't return NULL char on wrong role number
\n
"
);
bufW
[
0
]
=
'*'
;
ret
=
GetRoleTextW
(
-
1
,
bufW
,
0
);
ok
(
ret
==
0
,
"GetRoleTextW doesn't return zero on wrong role number, got %d
\n
"
,
ret
);
...
...
@@ -72,8 +76,11 @@ static void test_getroletext(void)
ok
(
buf
[
0
]
==
'\0'
,
"GetRoleTextA returned not zero-length buffer
\n
"
);
buf
[
1
]
=
'*'
;
ret
=
GetRoleTextA
(
ROLE_SYSTEM_TITLEBAR
,
buf
,
2
);
ok
(
ret
==
1
,
"GetRoleTextA returned wrong length, got %d, expected 1
\n
"
,
ret
);
ok
(
buf
[
1
]
==
'\0'
,
"GetRoleTextA returned not zero-length buffer
\n
"
);
ok
(
ret
==
1
||
ret
==
0
,
/* Vista and W2K8 */
"GetRoleTextA returned wrong length, got %d, expected 0 or 1
\n
"
,
ret
);
if
(
ret
==
1
)
ok
(
buf
[
1
]
==
'\0'
,
"GetRoleTextA returned not zero-length buffer : (%c)
\n
"
,
buf
[
1
]);
bufW
[
0
]
=
'*'
;
ret
=
GetRoleTextW
(
ROLE_SYSTEM_TITLEBAR
,
bufW
,
1
);
...
...
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