]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed wxRichEditModule::Load(): should return an error if the richedit DLL couldn...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 13 Jan 2002 00:24:12 +0000 (00:24 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 13 Jan 2002 00:24:12 +0000 (00:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13531 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/textctrl.cpp

index 7d2875e37c83eb98fa0e0eee324a0d4691f6c970..5189b09808ba2ff53031747bb517a3d094abdaea 100644 (file)
@@ -1693,18 +1693,18 @@ bool wxRichEditModule::Load(int version)
     // make it the index in the array
     version--;
 
-    if ( ms_hRichEdit[version] )
-    {
-        // we've already got this one
-        return TRUE;
-    }
-
     if ( ms_hRichEdit[version] == (HINSTANCE)-1 )
     {
         // we had already tried to load it and failed
         return FALSE;
     }
 
+    if ( ms_hRichEdit[version] )
+    {
+        // we've already got this one
+        return TRUE;
+    }
+
     wxString dllname = version ? _T("riched20") : _T("riched32");
     dllname += _T(".dll");