Changeset 56604 in vbox
- Timestamp:
- Jun 23, 2015 2:47:32 PM (9 years ago)
- Location:
- trunk/src/libs/xpcom18a4/java/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/java/src/nsJavaInterfaces.cpp
r46649 r56604 505 505 rv = JavaObjectToNativeInterface(env, aJavaObject, iid, &xpcomObject); 506 506 if (NS_SUCCEEDED(rv)) { 507 rv = ((nsISupports*) xpcomObject)->QueryInterface(iid, &xpcomObject); 507 nsISupports *xpcom_nat_obj = (nsISupports*) xpcomObject; 508 rv = xpcom_nat_obj->QueryInterface(iid, &xpcomObject); 509 NS_IF_RELEASE(xpcom_nat_obj); 508 510 } 509 511 } else { -
trunk/src/libs/xpcom18a4/java/src/nsJavaWrapper.cpp
r50393 r56604 758 758 if (NS_FAILED(rv)) 759 759 break; 760 rv = ((nsISupports*) xpcom_obj)->QueryInterface(iid, &xpcom_obj); 760 NS_ENSURE_TRUE(xpcom_obj, NS_ERROR_FAILURE); 761 nsISupports *xpcom_nat_obj = (nsISupports*) xpcom_obj; 762 rv = xpcom_nat_obj->QueryInterface(iid, &xpcom_obj); 763 NS_IF_RELEASE(xpcom_nat_obj); 761 764 if (NS_FAILED(rv)) 762 765 break;
Note:
See TracChangeset
for help on using the changeset viewer.