I don't know if this qualifies as a bug, and for me it's no longer a problem thanks to Joe, but might it be worth updating the standard COM library to make this particular function (i.e. Com_AccessibleObjectFromWindow) to support both 32-bit and 64-bit systems?

Maybe not standard despite the name. What I have installed is attached.
I've looked through quite a few variants of it that are in various online locations, and they all seem to have the same COM_AccessibleObjectFromWindow function definition.
Regards,
burque505

Isn't this library generally considered to be dead?
Also I dont understand how this is a bug within the AutoHotkey language.
Maybe you could make a new post about the library in the Scripts and Functions forums.

EDITED: I don't know if it's considered to be dead or not. Some functions appear to still work fine with 64-bit and be required for working scripts. I can't think offhand of any scripts I use on a routine basis that DO require that lib.

As I mentioned,

I don't know if this qualifies as a bug

I guess if it's in a LIB, probably (almost certainly) not.
Is there any COM function built-in now that would provided what COM_AccessibleObjectFromWindow() or the Joe Glines function above do?
Regards,
burque505