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
62b59635
Commit
62b59635
authored
Jan 16, 2011
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Jan 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Pass the byte count to FONT_mbtowc in GetCharABCWidthsA.
parent
c05d8781
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
font.c
dlls/gdi32/font.c
+1
-1
font.c
dlls/gdi32/tests/font.c
+0
-1
No files found.
dlls/gdi32/font.c
View file @
62b59635
...
...
@@ -2317,7 +2317,7 @@ BOOL WINAPI GetCharABCWidthsA(HDC hdc, UINT firstChar, UINT lastChar,
}
str
[
i
]
=
'\0'
;
wstr
=
FONT_mbtowc
(
hdc
,
str
,
-
1
,
&
wlen
,
NULL
);
wstr
=
FONT_mbtowc
(
hdc
,
str
,
i
,
&
wlen
,
NULL
);
if
(
wstr
==
NULL
)
{
HeapFree
(
GetProcessHeap
(),
0
,
str
);
...
...
dlls/gdi32/tests/font.c
View file @
62b59635
...
...
@@ -988,7 +988,6 @@ static void test_GetCharABCWidths(void)
memset
(
full
,
0xcc
,
sizeof
full
);
ret
=
pGetCharABCWidthsA
(
hdc
,
0x00
,
code
,
full
);
ok
(
ret
,
"GetCharABCWidthsA should have succeeded
\n
"
);
todo_wine
ok
(
memcmp
(
&
a
[
0
],
&
full
[
code
],
sizeof
(
ABC
))
==
0
,
"GetCharABCWidthsA info should match. codepage = %u
\n
"
,
c
[
i
].
cs
);
...
...
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