зеркало из https://github.com/mozilla/gecko-dev.git
Bug 203947 - Creating '@mozilla.org/xmlextras/proxy/webserviceproxy;1' or '@mozilla.org/xmlextras/proxy/webserviceproperty
r=harishd sr=heikki a=sspitzer
This commit is contained in:
Родитель
141a94ec6f
Коммит
4613fea7e9
|
@ -210,6 +210,10 @@ WSPPropertyBagWrapper::GetInterfaceInfo(nsIInterfaceInfo** info)
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
WSPPropertyBagWrapper::GetInterfaces(PRUint32 *count, nsIID * **array)
|
WSPPropertyBagWrapper::GetInterfaces(PRUint32 *count, nsIID * **array)
|
||||||
{
|
{
|
||||||
|
if (!mIID) {
|
||||||
|
return NS_ERROR_NOT_INITIALIZED;
|
||||||
|
}
|
||||||
|
|
||||||
*count = 2;
|
*count = 2;
|
||||||
nsIID** iids = NS_STATIC_CAST(nsIID**, nsMemory::Alloc(2 * sizeof(nsIID*)));
|
nsIID** iids = NS_STATIC_CAST(nsIID**, nsMemory::Alloc(2 * sizeof(nsIID*)));
|
||||||
if (!iids) {
|
if (!iids) {
|
||||||
|
|
|
@ -1225,6 +1225,10 @@ WSPProxy::GetInterfaces(nsIScriptableInterfaces * *aInterfaces)
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
WSPProxy::GetInterfaces(PRUint32 *count, nsIID * **array)
|
WSPProxy::GetInterfaces(PRUint32 *count, nsIID * **array)
|
||||||
{
|
{
|
||||||
|
if (!mIID) {
|
||||||
|
return NS_ERROR_NOT_INITIALIZED;
|
||||||
|
}
|
||||||
|
|
||||||
*count = 2;
|
*count = 2;
|
||||||
nsIID** iids = NS_STATIC_CAST(nsIID**, nsMemory::Alloc(2 * sizeof(nsIID*)));
|
nsIID** iids = NS_STATIC_CAST(nsIID**, nsMemory::Alloc(2 * sizeof(nsIID*)));
|
||||||
if (!iids) {
|
if (!iids) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче