mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Fix blacklist/whitelist registry code in COM connect. b=193256 r=dbradley sr=alecf a=dbaron
This commit is contained in:
parent
3ea21f2ffc
commit
b864237a15
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user