Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Major Bug in CXTPAccessible::AccessibleObjectFromW
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Major Bug in CXTPAccessible::AccessibleObjectFromW

 Post Reply Post Reply
Author
Message
mber View Drop Down
Newbie
Newbie


Joined: 24 June 2003
Location: Switzerland
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote mber Quote  Post ReplyReply Direct Link To This Post Topic: Major Bug in CXTPAccessible::AccessibleObjectFromW
    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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.