X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d2f434e428869adfbf350f778374cb55ec341fde..e77cba1a9c2085b15789bbdc3d38697c4670d2a7:/src/msw/textctrl.cpp 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;