dwrite: Use E_NOT_SUFFICIENT_BUFFER definition.
This commit is contained in:
parent
a5df09b404
commit
37a02acc6a
|
@ -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");
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue