back out dp's unsafe optimization that caused crash on first run

This commit is contained in:
jband%netscape.com 2000-03-02 19:57:23 +00:00
parent 19fa57d1f9
commit 3f9d673a94

View File

@ -1160,9 +1160,7 @@ nsComponentManagerImpl::ProgIDToClassID(const char *aProgID, nsCID *aClass)
else {
// This is the first time someone has asked for this
// ProgID. Go to the registry to find the CID.
if (!mPrePopulationDone) {
res = PlatformProgIDToCLSID(aProgID, aClass);
}
res = PlatformProgIDToCLSID(aProgID, aClass);
if (NS_SUCCEEDED(res)) {
// Found it. So put it into the cache.