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)
return E_POINTER;
if (IsEqualIID(riid, IID_IUnknown) ||
IsEqualIID(riid, IID_IDispatch) ||
IsEqualIID(riid, IID_IAccessible)) {
if (IsEqualIID(riid, &IID_IUnknown) ||
IsEqualIID(riid, &IID_IDispatch) ||
IsEqualIID(riid, &IID_IAccessible)) {
*ppvObject = (void *) this;
return S_OK;
}
@ -256,7 +256,7 @@ HANDLER(accessibilityHandler)
return FALSE;
if (wParam != OBJID_CLIENT)
return FALSE;
*lResult = LresultFromObject(IID_IAccessible, wParam, t->ta);
*lResult = LresultFromObject(&IID_IAccessible, wParam, t->ta);
// TODO check *lResult
return TRUE;
}

View File

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