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

This commit is contained in:
[email protected] committed 2004-09-15 19:47:19 +00:00
1 parent 34ca027b0e
commit f88b58fa73
4 files changed
+12 -9

No files matched your search

+2 -1
View File
@@ -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();