Fix blacklist/whitelist registry code in COM connect. b=193256 r=dbradley sr=alecf a=dbaron

This commit is contained in:
locka%iol.ie 2003-02-16 19:50:14 +00:00
parent 3ea21f2ffc
commit b864237a15
2 changed files with 4 additions and 4 deletions

View File

@ -342,7 +342,7 @@ WillHandleCLSID(const CLSID &clsid)
memcpy(&cid, &clsid, sizeof(nsCID));
PRBool isSafe = PR_FALSE;
PRBool classExists = PR_FALSE;
dispSupport->IsClassSafeToHost(cid, &isSafe, &classExists);
dispSupport->IsClassSafeToHost(cid, &classExists, &isSafe);
if (classExists && !isSafe)
return FALSE;
return TRUE;

View File

@ -65,11 +65,11 @@ ClassIsListed(HKEY hkeyRoot, const TCHAR *szKey, const CLSID &clsid, PRBool &lis
USES_CONVERSION;
TCHAR szCLSID[64];
const DWORD kBufLength = sizeof(szCLSID) / sizeof(szCLSID[0]);
memset(szCLSID, 0, sizeof(szCLSID));
if(::RegEnumKey(keyList, i, szCLSID, kBufLength) != ERROR_SUCCESS)
{
// An empty list
if(i == 0)
break;
// End of list
break;
}
++i;
listIsEmpty = PR_FALSE;