Removed refcount/WM_GETOBJECT debug spew. More TODOs.
This commit is contained in:
parent
7453385923
commit
3a9842e86c
|
@ -16,6 +16,7 @@ static HRESULT STDMETHODCALLTYPE tableAccQueryInterface(IAccessible *this, REFII
|
||||||
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)) {
|
||||||
|
// TODO figure out what pointer to use here
|
||||||
TA->vtbl->AddRef(TA);
|
TA->vtbl->AddRef(TA);
|
||||||
*ppvObject = (void *) this;
|
*ppvObject = (void *) this;
|
||||||
return S_OK;
|
return S_OK;
|
||||||
|
@ -28,7 +29,6 @@ static HRESULT STDMETHODCALLTYPE tableAccQueryInterface(IAccessible *this, REFII
|
||||||
|
|
||||||
static ULONG STDMETHODCALLTYPE tableAccAddRef(IAccessible *this)
|
static ULONG STDMETHODCALLTYPE tableAccAddRef(IAccessible *this)
|
||||||
{
|
{
|
||||||
printf("AddRef()\n");
|
|
||||||
TA->refcount++;
|
TA->refcount++;
|
||||||
// TODO correct?
|
// TODO correct?
|
||||||
return TA->refcount;
|
return TA->refcount;
|
||||||
|
@ -36,11 +36,9 @@ printf("AddRef()\n");
|
||||||
|
|
||||||
static ULONG STDMETHODCALLTYPE tableAccRelease(IAccessible *this)
|
static ULONG STDMETHODCALLTYPE tableAccRelease(IAccessible *this)
|
||||||
{
|
{
|
||||||
printf("Release(): refcount %d\n", TA->refcount);
|
|
||||||
TA->refcount--;
|
TA->refcount--;
|
||||||
if (TA->refcount == 0) {
|
if (TA->refcount == 0) {
|
||||||
printf("FREEING\n");
|
tableFree(TA, "error freeing Table accessibility object");
|
||||||
//TODO tableFree(TA, "error freeing Table accessibility object");
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
return TA->refcount;
|
return TA->refcount;
|
||||||
|
@ -255,9 +253,7 @@ static struct tableAcc *newTableAcc(struct table *t)
|
||||||
|
|
||||||
ta = (struct tableAcc *) tableAlloc(sizeof (struct tableAcc), "error creating Table accessibility object");
|
ta = (struct tableAcc *) tableAlloc(sizeof (struct tableAcc), "error creating Table accessibility object");
|
||||||
ta->vtbl = &tableAccVtbl;
|
ta->vtbl = &tableAccVtbl;
|
||||||
printf("create: %d -> ", ta->refcount);
|
|
||||||
ta->vtbl->AddRef(ta);
|
ta->vtbl->AddRef(ta);
|
||||||
printf("%d\n", ta->refcount);
|
|
||||||
ta->t = t;
|
ta->t = t;
|
||||||
return ta;
|
return ta;
|
||||||
}
|
}
|
||||||
|
@ -274,9 +270,7 @@ HANDLER(accessibilityHandler)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
if (((DWORD) lParam) != OBJID_CLIENT)
|
if (((DWORD) lParam) != OBJID_CLIENT)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
printf("before LresultFromObject()\n");
|
|
||||||
*lResult = LresultFromObject(&IID_IAccessible, wParam, t->ta);
|
*lResult = LresultFromObject(&IID_IAccessible, wParam, t->ta);
|
||||||
printf("after LresultFromObject(): 0x%X\n", *lResult);
|
|
||||||
// TODO check *lResult
|
// TODO check *lResult
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue