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
This commit is contained in:
@@ -1693,18 +1693,18 @@ bool wxRichEditModule::Load(int version)
|
|||||||
// make it the index in the array
|
// make it the index in the array
|
||||||
version--;
|
version--;
|
||||||
|
|
||||||
if ( ms_hRichEdit[version] )
|
|
||||||
{
|
|
||||||
// we've already got this one
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( ms_hRichEdit[version] == (HINSTANCE)-1 )
|
if ( ms_hRichEdit[version] == (HINSTANCE)-1 )
|
||||||
{
|
{
|
||||||
// we had already tried to load it and failed
|
// we had already tried to load it and failed
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( ms_hRichEdit[version] )
|
||||||
|
{
|
||||||
|
// we've already got this one
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
wxString dllname = version ? _T("riched20") : _T("riched32");
|
wxString dllname = version ? _T("riched20") : _T("riched32");
|
||||||
dllname += _T(".dll");
|
dllname += _T(".dll");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user