From 28978e0c5af8ec9a6ee0ab82456567cbfca221f7 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 13 Jan 2002 00:24:12 +0000 Subject: [PATCH] fixed wxRichEditModule::Load(): should return an error if the richedit DLL couldn't be loaded previously, not success git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13531 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/textctrl.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 7d2875e37c..5189b09808 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -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"); -- 2.50.0