dwrite: Be prepared for 0 face_id passed to face requester.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2016-05-18 10:11:39 +03:00 committed by Alexandre Julliard
parent c653dbd1b4
commit e0e937e19a
1 changed files with 5 additions and 0 deletions

View File

@ -107,6 +107,11 @@ static FT_Error face_requester(FTC_FaceID face_id, FT_Library library, FT_Pointe
*face = NULL;
if (!fontface) {
WARN("NULL fontface requested.\n");
return FT_Err_Ok;
}
count = 1;
hr = IDWriteFontFace_GetFiles(fontface, &count, &file);
if (FAILED(hr))