Major Bug in CXTPAccessible::AccessibleObjectFromW |
Post Reply |
Author | |
mber
Newbie Joined: 24 June 2003 Location: Switzerland Status: Offline Points: 7 |
Post Options
Thanks(0)
Posted: 09 April 2007 at 6:55am |
Hello ...
Problem
The following bug causes an access violation (crash on Windows Vista) on all systems where an accessibility client (e.g. Narrator from MS Windows, HP Credential Manager for ProtectTools and many others) is active.
Reproduce
To reproduce the problem
1. Start Narrator (Accessories->Accessibility->Narrator).
2. Start a sample application from Codejock (e.g. Gallery Sample).
3. Select a menu item (e.g. File).
4. Move mouse to another menu item (e.g. Edit)
=> Crash in oleacct.dll on Windows Vista, Access Violation (Cannot read memory at address ...) on all others.
Fix
Version: 10.4.2
File: XTPSystemHelper.cpp
HRESULT CXTPAccessible::AccessibleObjectFromWindow(HWND hwnd, DWORD dwId, REFIID riid, void** ppvObject)
{ if (!m_modOleAcc) { m_modOleAcc.LoadLibrary(_T("oleacc.dll")); } if (m_pAccessibleObjectFromWindow == 0)
{ BUG: m_modOleAcc.GetProcAddress(
(FARPROC*)&m_pNotifyWinEvent, "AccessibleObjectFromWindow"); FIX:
m_modOleAcc.GetProcAddress( (FARPROC*)&m_pAccessibleObjectFromWindow, "AccessibleObjectFromWindow"); } if (m_pAccessibleObjectFromWindow)
{ return m_pAccessibleObjectFromWindow(hwnd, dwId, riid, ppvObject); } return E_FAIL; } Regards,
-Mat
SmartFTP
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |