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:
parent
d4b45f48c6
commit
28978e0c5a
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user