Skip to content

Conversation

@dhoelzl
Copy link

@dhoelzl dhoelzl commented Apr 5, 2019

MAPIType.isFixedLength: not true in case of length > 8 as fixed length properties are always stored as 8 bytes (zero-padded if length < 8) and cannot exceed 8 bytes.

Writing e.g. MAPIType CLS_ID which has length 16 would fail otherwise.
(Defined here:

public static final MAPIType CLS_ID = new MAPIType(0x0048, "CLS ID GUID", 16);
)

…h properties are always stored as 8 bytes (zero-padded if length < 8)
@asfgit
Copy link

asfgit commented Apr 5, 2019

Can one of the admins verify this patch?

@kiwiwings
Copy link
Contributor

Patch applied via r1857708, thank you for bringing this up.
First I thought about having an additional attribute or specific handling of CLS_ID, but for custom types your solution seems to be straight forward.

@dhoelzl dhoelzl closed this May 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants