gdiplus/tests: Fix a font test crash when "MS Shell Dlg" is not found.
commit53371cc55666fb9805aaeb6bef42b7baf410b15c
authorFrancois Gouget <fgouget@codeweavers.com>
Thu, 26 Aug 2021 14:40:05 +0000 (26 16:40 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 27 Aug 2021 18:27:22 +0000 (27 20:27 +0200)
tree404d0fa6f827b95483192f75889d6cc37e973c1c
parentad663360fae6b4a9ee3d7786857404e0a4917329
gdiplus/tests: Fix a font test crash when "MS Shell Dlg" is not found.

When "MS Shell Dlg" is missing GdipCreateFontFamilyFromName() leaves
the GpFontFamily* pointer uninitialised. So initialize it to NULL in
order to get clean failures instead of a crash.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Esme Povirk <esme@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/gdiplus/tests/font.c