Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct the Guid used when writing the user defined properties sectio… #109

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

Numpsy
Copy link
Contributor

@Numpsy Numpsy commented Feb 13, 2024

…n, and use WellKnownFMTID instead of duplicating the guids in several places

…n, and use WellKnownFMTID instead of duplicating the guids in several places
@@ -248,7 +248,7 @@ public void Save(CFStream cfStream)
PropertyContext = UserDefinedProperties.Context
};

ps.FMTID1 = new Guid("{D5CDD502-2E9C-101B-9397-08002B2CF9AE}");
ps.FMTID1 = new Guid(WellKnownFMTID.FMTID_UserDefinedProperties);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noticed whilst testing that this was writing the DocSummaryInformation guid into the user defined properties section, when it should be the UserDefinedProperties guid.
I also changed it to use the 'WellKnownFMTID' values instead of duplicating the strings, though that's not required for the fix

@ironfede ironfede merged commit 7f287e6 into ironfede:master Feb 19, 2024
@Numpsy Numpsy deleted the users/rw/user_defined_4 branch February 19, 2024 22:46
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.

2 participants