Fixed AskPluginLoad would still allowed plugin to load even if it returned false.

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401206
This commit is contained in:
Phong Dang 2007-07-29 00:26:18 +00:00
parent 41e48f4bfb
commit f2630470c4

View File

@ -932,6 +932,8 @@ LoadRes CPluginManager::_LoadPlugin(CPlugin **_plugin, const char *path, bool de
{
/* Autoload any modules */
LoadOrRequireExtensions(pPlugin, 1, error, maxlength);
} else {
pPlugin->SetErrorState(Plugin_Failed, "%s", error);
}
}