fixed a bug where if a plugin errored during the instantiation process, then its index could be reported as -1 from debug messages

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402156
This commit is contained in:
David Anderson 2008-05-20 02:30:55 +00:00
parent 80b2ea646a
commit a18b1e0790

View File

@ -181,6 +181,9 @@ int DebugReport::_GetPluginIndex(IPluginContext *ctx)
}
iter->Release();
return -1;
/* If we don't know which plugin this is, it's one being loaded. Fake its index for now. */
return g_PluginSys.GetPluginCount() + 1;
}