Bug 313075

Summary: Accessible should not use VARIANT struct for 64-bit VT_DISPATCH values
Product: [Eclipse Project] Platform Reporter: Carolyn MacLeod <carolynmacleod4>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: Carolyn_MacLeod, Silenio_Quarti
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
patch to fix 64-bit VARIANT problems none

Description Carolyn MacLeod CLA 2010-05-17 02:47:05 EDT
Created attachment 168688 [details]
patch to fix 64-bit VARIANT problems

If a VARIANT parameter has a variant type of VT_DISPATCH, need to get the interface pointer using MoveMemory(..., ..., OS.PTR_SIZEOF), rather than just accessing the VARIANT's lVal field. This is because lVal is an int, but we need an int /*long*/ value so that the pointer is the correct size on 64-bit platforms.
Comment 1 Carolyn MacLeod CLA 2010-05-17 02:52:17 EDT
Should also fix Acessible.getNumberVARIANT() using the same pattern. See setNumberVARIANT() for the valid types.
Comment 2 Eclipse Webmaster CLA 2019-09-06 15:38:27 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.