diff --git a/accessible/src/msaa/CAccessibleText.cpp b/accessible/src/msaa/CAccessibleText.cpp index 37720b62722..9fb12f0a091 100755 --- a/accessible/src/msaa/CAccessibleText.cpp +++ b/accessible/src/msaa/CAccessibleText.cpp @@ -113,12 +113,12 @@ __try { if (!winAccessNode) return E_FAIL; - void **instancePtr = 0; - winAccessNode->QueryNativeInterface(IID_IAccessible2, instancePtr); + void *instancePtr = 0; + winAccessNode->QueryNativeInterface(IID_IAccessible2, &instancePtr); if (!instancePtr) return E_FAIL; - IAccessible2 *pAccessible2 = static_cast(*instancePtr); + IAccessible2 *pAccessible2 = static_cast(instancePtr); HRESULT hr = pAccessible2->get_attributes(aTextAttributes); pAccessible2->Release(); diff --git a/accessible/src/msaa/nsAccessibleWrap.cpp b/accessible/src/msaa/nsAccessibleWrap.cpp index 4e8a4bf43e1..9835e335e09 100644 --- a/accessible/src/msaa/nsAccessibleWrap.cpp +++ b/accessible/src/msaa/nsAccessibleWrap.cpp @@ -1474,7 +1474,7 @@ __try { return E_FAIL; if (!attributes) - return S_OK; + return S_FALSE; nsCOMPtr propEnum; attributes->Enumerate(getter_AddRefs(propEnum));