diff options
| author | Pietro Gagliardi <[email protected]> | 2015-02-15 04:54:14 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-02-15 04:54:14 -0500 |
| commit | ef1406fb3e4f692751f828c5ea76805fc86a3d71 (patch) | |
| tree | 4794bff180d00fedceb1150c297eb24ecf8e5dc7 | |
| parent | 37c7ac364a622719d6002380c989b368ba4beab4 (diff) | |
Converted all GetLastError() calls in the Table accessible object to HRESULTs.
| -rw-r--r-- | wintable/accessibility.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wintable/accessibility.h b/wintable/accessibility.h index 21ce29c..a9f07f0 100644 --- a/wintable/accessibility.h +++ b/wintable/accessibility.h @@ -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: |
