Converted all GetLastError() calls in the Table accessible object to HRESULTs.

This commit is contained in:
Pietro Gagliardi 2015-02-15 04:54:14 -05:00
parent 37c7ac364a
commit ef1406fb3e
1 changed files with 3 additions and 3 deletions

View File

@ -366,7 +366,7 @@ static HRESULT STDMETHODCALLTYPE tableAccaccLocation(IAccessible *this, long *px
pt.x = r.left;
pt.y = r.top;
if (ClientToScreen(TA->t->hwnd, &pt) == 0)
return GetLastError(); // TODO
return HRESULT_FROM_WIN32(GetLastError());
*pxLeft = pt.x;
*pyTop = pt.y;
*pcxWidth = r.right - r.left;
@ -398,12 +398,12 @@ static HRESULT STDMETHODCALLTYPE tableAccaccHitTest(IAccessible *this, long xLef
pt.x = xLeft;
pt.y = yTop;
if (ScreenToClient(TA->t->hwnd, &pt) == 0)
return GetLastError(); // TODO
return HRESULT_FROM_WIN32(GetLastError());
switch (TA->what.role) {
case ROLE_SYSTEM_TABLE:
if (GetClientRect(TA->t->hwnd, &r) == 0)
return GetLastError(); // TODO
return HRESULT_FROM_WIN32(GetLastError());
r.top += TA->t->headerHeight;
break;
case ROLE_SYSTEM_ROW: