[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-swt-dev] MoveMemory Variant question...
|
MoveMemory does not zero out the original memory, it copies the data to
the new location. The difference between MoveMemory and CopyMemory is
that "(Source + Length) cannot overlap the Destination range passed in to
RtlCopyMemory"
avneesh saxena <avneeshs@xxxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx
07/30/2004 12:07 PM
Please respond to
platform-swt-dev
To
platform-swt-dev@xxxxxxxxxxx
cc
Subject
[platform-swt-dev] MoveMemory Variant question...
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.
Thanks,
--Avs
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev