diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index f394ce44e2..18015d6bed 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -2820,10 +2820,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;