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:
parent
c653dbd1b4
commit
e0e937e19a
@ -107,6 +107,11 @@ static FT_Error face_requester(FTC_FaceID face_id, FT_Library library, FT_Pointe
|
|||||||
|
|
||||||
*face = NULL;
|
*face = NULL;
|
||||||
|
|
||||||
|
if (!fontface) {
|
||||||
|
WARN("NULL fontface requested.\n");
|
||||||
|
return FT_Err_Ok;
|
||||||
|
}
|
||||||
|
|
||||||
count = 1;
|
count = 1;
|
||||||
hr = IDWriteFontFace_GetFiles(fontface, &count, &file);
|
hr = IDWriteFontFace_GetFiles(fontface, &count, &file);
|
||||||
if (FAILED(hr))
|
if (FAILED(hr))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user