Closed Bug 273896 Opened 20 years ago Closed 20 years ago

QueryService to ISimpleDOM interfaces failing with ERROR_NOACCESS

Categories

(Core :: Disability Access APIs, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 274542

People

(Reporter: aaronlev, Assigned: aaronlev)

References

Details

(Keywords: access)

The following code from an external AT client fails although it used to work:
// Start with IAccessible *pAccessible;
IServiceProvider *pServProv = NULL;
pAccaccessible->QueryInterface(IID_IServiceProvider, (void**)&pServProv);
if (pServProv) {
  const GUID refguid = 
    {0x0c539790, 0x12e4, 0x11cf, 0xb6, 0x61, 0x00, 0xaa, 0x00, 0x4c, 0xd6, xd8};
  HRESULT result = pServProv->QueryService(refguid, IID_ISimpleDOMNode, 
                                          (void**)&pAccNode);
  // Result now equals ERROR_NOACCESS -- Invalid access to memory location

Microsoft support says that this can be resolved by using the /Os option for
midl: http://support.microsoft.com/default.aspx?scid=kb;en-us;273721

Note, midl command line option changes were made in September 2003, for bug 208461.
The midl /Os fix does not seem to help.
Debug builds on my machine produce a usable AccessibleMarshal.dll

Here's what release builds from tinderbox are doing differently:
For compiling ISimple*.c files, release has a lot of different defines, plus
-O1, -MD (MSVCRT.LIB) as opposed to no -O option and -MDd (MSVCRTD.LIB) in my
debug build
For linking AccessibleMarshal.dll, release build uses /OPT:REF /OPT:nowin98 as
opposed to nothing for those in my debug build
Official .zip's of Firefox are okay. Only the setup.exe's have the problem.
Depends on: 274542

*** This bug has been marked as a duplicate of 274542 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.