Index: fpdfsdk/fpdfview.cpp |
diff --git a/fpdfsdk/fpdfview.cpp b/fpdfsdk/fpdfview.cpp |
index 34e7d236195b01b1f180b57cdfb9edc2fffebeb8..f47de1518d86de874b28687c7ec47e753022171c 100644 |
--- a/fpdfsdk/fpdfview.cpp |
+++ b/fpdfsdk/fpdfview.cpp |
@@ -262,8 +262,8 @@ DLLEXPORT void STDCALL |
FPDF_InitLibraryWithConfig(const FPDF_LIBRARY_CONFIG* cfg) { |
g_pCodecModule = new CCodec_ModuleMgr(); |
- CFX_GEModule::Create(cfg ? cfg->m_pUserFontPaths : nullptr, g_pCodecModule); |
- CPDF_ModuleMgr::Create(); |
+ CFX_GEModule* pModule = CFX_GEModule::Get(); |
+ pModule->Init(cfg ? cfg->m_pUserFontPaths : nullptr, g_pCodecModule); |
CPDF_ModuleMgr* pModuleMgr = CPDF_ModuleMgr::Get(); |
pModuleMgr->SetCodecModule(g_pCodecModule); |
pModuleMgr->InitPageModule(); |