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
a415974b
Commit
a415974b
authored
Apr 23, 2011
by
Tim Hentenaar
Committed by
Alexandre Julliard
Apr 27, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: GetTabbedTextExtent() returns non-zero value when nCount == 0.
parent
e0a60312
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
text.c
dlls/user32/tests/text.c
+3
-0
text.c
dlls/user32/text.c
+2
-0
No files found.
dlls/user32/tests/text.c
View file @
a415974b
...
...
@@ -617,6 +617,9 @@ static void test_TabbedText(void)
ret
=
GetTextMetricsA
(
hdc
,
&
tm
);
ok
(
ret
,
"GetTextMetrics error %u
\n
"
,
GetLastError
());
extent
=
GetTabbedTextExtentA
(
hdc
,
"x"
,
0
,
1
,
tabs
);
ok
(
extent
==
0
,
"GetTabbedTextExtentA returned non-zero on nCount == 0
\n
"
);
extent
=
GetTabbedTextExtentA
(
hdc
,
"x"
,
1
,
1
,
tabs
);
cx
=
LOWORD
(
extent
);
cy
=
HIWORD
(
extent
);
...
...
dlls/user32/text.c
View file @
a415974b
...
...
@@ -1281,6 +1281,8 @@ static LONG TEXT_TabbedTextOut( HDC hdc, INT x, INT y, LPCWSTR lpstr,
int
i
,
j
;
int
start
=
x
;
if
(
!
lpstr
||
count
==
0
)
return
0
;
if
(
!
lpTabPos
)
cTabStops
=
0
;
...
...
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