QI, don't case! Not part of default build.

Original committer: pedemont%us.ibm.com
Original revision: 1.2
Original date: 2004/09/15 19:47:19
This commit is contained in:
pedemont%us.ibm.com 2006-09-27 15:09:33 +00:00
Родитель 495bd0db70
Коммит c17fb369fb
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -182,7 +182,8 @@ XPCOM_NATIVE(NS_1NewSingletonEnumerator) (JNIEnv *env, jclass, jobject aSingleto
nsISupports* singleton;
if (IsXPTCStub(inst))
singleton = (nsISupports*) GetXPTCStubAddr(inst);
GetXPTCStubAddr(inst)->QueryInterface(NS_GET_IID(nsISupports),
(void**) &singleton);
else {
JavaXPCOMInstance* xpcomInst = (JavaXPCOMInstance*) inst;
singleton = xpcomInst->GetInstance();