Bug 801471 - Failed to convert nsresult to HRESULT on windows build. r=trev.saunders
authorOleg Romashin <romaxa@gmail.com>
Sun, 14 Oct 2012 23:20:18 -0700
changeset 110412 8c6f15a776956da96b9a684dc7d9472a7a432f8d
parent 110411 25f31c96a280e64a5cea3e7f2bc828d49ca82494
child 110413 9c8ea48a797515a462202f1d2c969c5f3705502a
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
reviewerstrev
bugs801471
milestone19.0a1
Bug 801471 - Failed to convert nsresult to HRESULT on windows build. r=trev.saunders
accessible/src/msaa/nsAccessNodeWrap.cpp
--- a/accessible/src/msaa/nsAccessNodeWrap.cpp
+++ b/accessible/src/msaa/nsAccessNodeWrap.cpp
@@ -120,17 +120,17 @@ nsAccessNodeWrap::QueryService(REFGUID g
     // Make sure this is a document.
     DocAccessible* docAcc = nsAccUtils::GetDocAccessibleFor(root);
     if (!docAcc)
       return E_UNEXPECTED;
 
     *ppv = static_cast<IAccessible*>(docAcc);
 
     (reinterpret_cast<IUnknown*>(*ppv))->AddRef();
-    return NS_OK;
+    return S_OK;
   }
 
   // Can get to IAccessibleApplication from any node via QS
   if (guidService == IID_IAccessibleApplication) {
     ApplicationAccessible* applicationAcc = ApplicationAcc();
     if (!applicationAcc)
       return E_NOINTERFACE;