Fixed other accessibility errors (partially thanks to Raymond Chen)

This commit is contained in:
Pietro Gagliardi 2014-12-24 21:53:30 -05:00
parent f6f2fba34e
commit 45a2b6b731
2 changed files with 5 additions and 5 deletions

View File

@ -10,9 +10,9 @@ static HRESULT STDMETHODCALLTYPE tableAccQueryInterface(IAccessible *this, REFII
{ {
if (ppvObject == NULL) if (ppvObject == NULL)
return E_POINTER; return E_POINTER;
if (IsEqualIID(riid, IID_IUnknown) || if (IsEqualIID(riid, &IID_IUnknown) ||
IsEqualIID(riid, IID_IDispatch) || IsEqualIID(riid, &IID_IDispatch) ||
IsEqualIID(riid, IID_IAccessible)) { IsEqualIID(riid, &IID_IAccessible)) {
*ppvObject = (void *) this; *ppvObject = (void *) this;
return S_OK; return S_OK;
} }
@ -256,7 +256,7 @@ HANDLER(accessibilityHandler)
return FALSE; return FALSE;
if (wParam != OBJID_CLIENT) if (wParam != OBJID_CLIENT)
return FALSE; return FALSE;
*lResult = LresultFromObject(IID_IAccessible, wParam, t->ta); *lResult = LresultFromObject(&IID_IAccessible, wParam, t->ta);
// TODO check *lResult // TODO check *lResult
return TRUE; return TRUE;
} }

View File

@ -21,7 +21,7 @@
#include <vssym32.h> #include <vssym32.h>
#include <oleacc.h> #include <oleacc.h>
// #qo LIBS: user32 kernel32 gdi32 comctl32 uxtheme // #qo LIBS: user32 kernel32 gdi32 comctl32 uxtheme ole32 oleacc uuid
// TODO // TODO
// - should tablePanic be CALLBACK or some other equivalent macro? and definitely export initTable somehow, but which alias macro to use? // - should tablePanic be CALLBACK or some other equivalent macro? and definitely export initTable somehow, but which alias macro to use?