www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.dwt - ports-bugs

I found a ports-bug in Variant.setData and Variant.getData.

Variant.getData() in variant.d.
--
386 COM.MoveMemory(pData + 8, &byRefPtr, 4);
--

Variant.setData() in variant.d.
--
707 OS.MoveMemory(&newByRefPtr, pData + 8, 4);
--

The pData in SWT is int type, but pData in DWT is VARIANT * type.
// pData + 8 == (cast(int)pData) + VARIANT.sizeof * 8

hoon
Jun 05 2006