From 45a2b6b7315349b0611cae3b6623321ca256e6b2 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 24 Dec 2014 21:53:30 -0500 Subject: [PATCH] Fixed other accessibility errors (partially thanks to Raymond Chen) --- wintable/new/accessibility.h | 8 ++++---- wintable/new/main.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wintable/new/accessibility.h b/wintable/new/accessibility.h index bef21e0..a676a09 100644 --- a/wintable/new/accessibility.h +++ b/wintable/new/accessibility.h @@ -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; } diff --git a/wintable/new/main.c b/wintable/new/main.c index 89d3454..ae8d314 100644 --- a/wintable/new/main.c +++ b/wintable/new/main.c @@ -21,7 +21,7 @@ #include #include -// #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?