BLOB becomes a leading value type for PROPVARIANT_IMMUTABLE as it takes another [StructLayout.Pack] at 64-bit platform thanks to the pointer in the structure (BLOB is 12B, PROPVARIANT is 24B size at 64-bit OS)
[StructLayout.Pack] removed at PROPVARIANT as it makes no sense with LayoutKind.Explicit
[StructLayout.Size] removed at both structures to allow this extension
Clearing BSTR Vector - superfluous indirection fixed (bug revealed by UT after 64-bit fix)
Clearing LPSTR Vector - uncommented & fixed (it was commented probably due to the same bug, in the way that causes memory leak)
IPropSetStorageTest enhanced to read/write multiple properties (it reveals the 64-bit issue)
BLOB
becomes a leading value type forPROPVARIANT_IMMUTABLE
as it takes another[StructLayout.Pack]
at 64-bit platform thanks to the pointer in the structure (BLOB
is 12B,PROPVARIANT
is 24B size at 64-bit OS)[StructLayout.Pack]
removed atPROPVARIANT
as it makes no sense withLayoutKind.Explicit
[StructLayout.Size]
removed at both structures to allow this extensionClearing
BSTR
Vector - superfluous indirection fixed (bug revealed by UT after 64-bit fix)Clearing
LPSTR
Vector - uncommented & fixed (it was commented probably due to the same bug, in the way that causes memory leak)IPropSetStorageTest
enhanced to read/write multiple properties (it reveals the 64-bit issue)