X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d2f434e428869adfbf350f778374cb55ec341fde..88b497c1291889313a82541267dfeac5ab13d06b:/src/msw/textctrl.cpp?ds=inline diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 533da4a077..e6a2500f05 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -2822,10 +2822,8 @@ bool wxRichEditModule::Load(Version version) // load the InkEdit library bool wxRichEditModule::LoadInkEdit() { - static wxDynamicLibrary ms_inkEditLib; - static bool ms_inkEditLibLoadAttemped; if (ms_inkEditLibLoadAttemped) - ms_inkEditLib.IsLoaded(); + return ms_inkEditLib.IsLoaded(); ms_inkEditLibLoadAttemped = true;