dwrite: Handle QI failure (Coverity).

This commit is contained in:
Nikolay Sivov 2015-08-22 21:07:17 +03:00 committed by Alexandre Julliard
parent 3ffe6ab0bb
commit 4a1e6227ed
1 changed files with 6 additions and 1 deletions

View File

@ -3597,8 +3597,13 @@ static void glyphrunanalysis_render(struct dwrite_glyphrunanalysis *analysis, DW
BOOL is_rtl, nohint;
FLOAT origin_x;
UINT32 i, size;
HRESULT hr;
IDWriteFontFace_QueryInterface(analysis->run.fontFace, &IID_IDWriteFontFace2, (void**)&fontface2);
hr = IDWriteFontFace_QueryInterface(analysis->run.fontFace, &IID_IDWriteFontFace2, (void**)&fontface2);
if (FAILED(hr)) {
WARN("failed to get IDWriteFontFace2, 0x%08x\n", hr);
return;
}
nohint = analysis->rendering_mode == DWRITE_RENDERING_MODE_NATURAL || analysis->rendering_mode == DWRITE_RENDERING_MODE_NATURAL_SYMMETRIC;