Fixed AskPluginLoad would still allowed plugin to load even if it returned false.
authorPhong Dang <teame06@gmail.com>
Sun Jul 29 00:26:18 2007 +0000 (2007-07-29)
changeset 1200623603b49096
parent 1199 1643c2d8f570
child 1201 fb159560c3fe
Fixed AskPluginLoad would still allowed plugin to load even if it returned false.
core/systems/PluginSys.cpp
     1.1 --- a/core/systems/PluginSys.cpp	Sat Jul 28 23:53:23 2007 +0000
     1.2 +++ b/core/systems/PluginSys.cpp	Sun Jul 29 00:26:18 2007 +0000
     1.3 @@ -932,6 +932,8 @@
     1.4  		{
     1.5  			/* Autoload any modules */
     1.6  			LoadOrRequireExtensions(pPlugin, 1, error, maxlength);
     1.7 +		} else {
     1.8 +			pPlugin->SetErrorState(Plugin_Failed, "%s", error);
     1.9  		}
    1.10  	}
    1.11