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
4ac4401c
Commit
4ac4401c
authored
Oct 09, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Oct 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Don't crash on NT4.
parent
b7787ec0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
text.c
dlls/user32/tests/text.c
+8
-5
No files found.
dlls/user32/tests/text.c
View file @
4ac4401c
...
...
@@ -139,11 +139,14 @@ static void test_DrawTextCalcRect(void)
ok
(
(
rect
.
left
==
rect
.
right
&&
rect
.
bottom
==
rect
.
top
),
"rectangle should be empty got %d,%d-%d,%d
\n
"
,
rect
.
left
,
rect
.
top
,
rect
.
right
,
rect
.
bottom
);
SetRect
(
&
rect
,
10
,
10
,
100
,
100
);
textheight
=
DrawTextExW
(
hdc
,
NULL
,
-
1
,
&
rect
,
DT_CALCRECT
,
NULL
);
ok
(
!
(
rect
.
left
==
rect
.
right
&&
rect
.
bottom
==
rect
.
top
),
"rectangle should NOT be empty got %d,%d-%d,%d
\n
"
,
rect
.
left
,
rect
.
top
,
rect
.
right
,
rect
.
bottom
);
if
(
0
)
{
SetRect
(
&
rect
,
10
,
10
,
100
,
100
);
/* Crashes on NT4 */
textheight
=
DrawTextExW
(
hdc
,
NULL
,
-
1
,
&
rect
,
DT_CALCRECT
,
NULL
);
ok
(
!
(
rect
.
left
==
rect
.
right
&&
rect
.
bottom
==
rect
.
top
),
"rectangle should NOT be empty got %d,%d-%d,%d
\n
"
,
rect
.
left
,
rect
.
top
,
rect
.
right
,
rect
.
bottom
);
}
SetRect
(
&
rect
,
10
,
10
,
100
,
100
);
textheight
=
DrawTextExW
(
hdc
,
NULL
,
0
,
&
rect
,
DT_CALCRECT
,
NULL
);
ok
(
!
(
rect
.
left
==
rect
.
right
&&
rect
.
bottom
==
rect
.
top
),
...
...
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