projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[GDIPLUS] Sync with Wine Staging 2.9. CORE-13362
[reactos.git]
/
reactos
/
dll
/
win32
/
gdiplus
/
font.c
diff --git
a/reactos/dll/win32/gdiplus/font.c
b/reactos/dll/win32/gdiplus/font.c
index
a731d56
..
57f90e7
100644
(file)
--- a/
reactos/dll/win32/gdiplus/font.c
+++ b/
reactos/dll/win32/gdiplus/font.c
@@
-543,6
+543,8
@@
GpStatus WINGDIPAPI GdipGetFontHeight(GDIPCONST GpFont *font,
TRACE("%p %p %p\n", font, graphics, height);
+ if (!font || !height) return InvalidParameter;
+
stat = GdipGetFontHeightGivenDPI(font, font->family->dpi, &font_height);
if (stat != Ok) return stat;