From 810c1be6404785efca4aa2f42ca75a12c1602acc Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Sun, 5 Apr 2020 21:55:46 +0200 Subject: [PATCH] Use GdiPlus::Status enum to represent status of GDI+ operation --- src/msw/graphics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/msw/graphics.cpp b/src/msw/graphics.cpp index 73676ce6e2..df1f59ee1d 100644 --- a/src/msw/graphics.cpp +++ b/src/msw/graphics.cpp @@ -1109,8 +1109,8 @@ wxGDIPlusFontData::Init(const wxString& name, for ( int j = 0 ; j < found; j++ ) { wchar_t familyName[LF_FACESIZE]; - int rc = gs_pFontFamily[j].GetFamilyName(familyName); - if ( rc == 0 && name == familyName ) + Status rc = gs_pFontFamily[j].GetFamilyName(familyName); + if ( rc == Ok && name == familyName ) { // Store reference to the cached FontFamily to avoid calling Font::GetFamily() // for private font because calling this method apparently is messing up something