[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[platform-swt-dev] MoveMemory Variant question...
- From: avneesh saxena <avneeshs@xxxxxxxxx>
- Date: Fri, 30 Jul 2004 11:07:49 -0500
- Delivered-to: email@example.com
I'm a little confused by Variant's use of MoveMemory. In the setData(pData)
method, the type of the variant is "moved" into a short. This should zero
out the memory in the variant(pData) corresponding to vt_type. However,
later in this method (if the type is not one of the standard ones), a
VariantChangeType is tried with the same pData which now has a zero for
vt_type!. Am I misunderstanding something or is this a bug.