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
37a02acc
Commit
37a02acc
authored
Oct 07, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 08, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Use E_NOT_SUFFICIENT_BUFFER definition.
parent
a5df09b4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
analyzer.c
dlls/dwrite/analyzer.c
+1
-1
analyzer.c
dlls/dwrite/tests/analyzer.c
+1
-1
No files found.
dlls/dwrite/analyzer.c
View file @
37a02acc
...
...
@@ -860,7 +860,7 @@ static HRESULT WINAPI dwritetextanalyzer_GetGlyphs(IDWriteTextAnalyzer2 *iface,
script
=
analysis
->
script
>
Script_LastId
?
Script_Unknown
:
analysis
->
script
;
if
(
max_glyph_count
<
length
)
return
HRESULT_FROM_WIN32
(
ERROR_INSUFFICIENT_BUFFER
)
;
return
E_NOT_SUFFICIENT_BUFFER
;
if
(
substitution
)
FIXME
(
"number substitution is not supported.
\n
"
);
...
...
dlls/dwrite/tests/analyzer.c
View file @
37a02acc
...
...
@@ -1121,7 +1121,7 @@ static void test_GetGlyphs(void)
sa
.
shapes
=
DWRITE_SCRIPT_SHAPES_DEFAULT
;
hr
=
IDWriteTextAnalyzer_GetGlyphs
(
analyzer
,
test1W
,
lstrlenW
(
test1W
),
fontface
,
FALSE
,
FALSE
,
&
sa
,
NULL
,
NULL
,
NULL
,
NULL
,
0
,
maxglyphcount
,
clustermap
,
props
,
glyphs1
,
shapingprops
,
&
actual_count
);
ok
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_INSUFFICIENT_BUFFER
)
,
"got 0x%08x
\n
"
,
hr
);
ok
(
hr
==
E_NOT_SUFFICIENT_BUFFER
,
"got 0x%08x
\n
"
,
hr
);
if
(
0
)
{
/* NULL fontface - crashes on Windows */
...
...
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