diff --git a/gfx/thebes/gfxDWriteFontList.cpp b/gfx/thebes/gfxDWriteFontList.cpp index 2c0ccda75169..925f876d9984 100644 --- a/gfx/thebes/gfxDWriteFontList.cpp +++ b/gfx/thebes/gfxDWriteFontList.cpp @@ -1072,7 +1072,7 @@ gfxDWriteFontList::InitFontListForPlatform() mSystemFonts = Factory::GetDWriteSystemFonts(true); NS_ASSERTION(mSystemFonts != nullptr, "GetSystemFontCollection failed!"); - if (FAILED(hr)) { + if (!mSystemFonts) { Telemetry::Accumulate(Telemetry::DWRITEFONT_INIT_PROBLEM, uint32_t(errSystemFontCollection)); return NS_ERROR_FAILURE;