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

Write VersionMajor/VersionMinor Uninstall values. #331

Merged
merged 2 commits into from Feb 22, 2016

Conversation

barnson
Copy link
Member

@barnson barnson commented Feb 14, 2016

No description provided.

@@ -642,9 +644,15 @@ extern "C" HRESULT RegistrationSessionBegin(
hr = RegWriteStringArray(hkRegistration, BURN_REGISTRATION_REGISTRY_BUNDLE_PATCH_CODE, pRegistration->rgsczPatchCodes, pRegistration->cPatchCodes);
ExitOnFailure(hr, "Failed to write %ls value.", BURN_REGISTRATION_REGISTRY_BUNDLE_PATCH_CODE);

hr = RegWriteStringFormatted(hkRegistration, BURN_REGISTRATION_REGISTRY_BUNDLE_VERSION, L"%hu.%hu.%hu.%hu", (WORD)(pRegistration->qwVersion >> 48), (WORD)(pRegistration->qwVersion >> 32), (WORD)(pRegistration->qwVersion >> 16), (WORD)(pRegistration->qwVersion));
hr = RegWriteStringFormatted(hkRegistration, BURN_REGISTRATION_REGISTRY_BUNDLE_VERSION, L"%hu.%hu.%hu.%hu", (WORD) (pRegistration->qwVersion >> 48), (WORD) (pRegistration->qwVersion >> 32), (WORD) (pRegistration->qwVersion >> 16), (WORD) (pRegistration->qwVersion));
Copy link
Member

Choose a reason for hiding this comment

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

Why add the spaces?

Copy link
Member Author

Choose a reason for hiding this comment

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

Visual Studio decided the aesthetics. Do you prefer no whitespace or a static_cast replacement?

Copy link
Member

Choose a reason for hiding this comment

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

Generally, static_cast and friends are preferred. I gave up fighting Fredrik in some parts of Burn way back when.

robmen added a commit that referenced this pull request Feb 22, 2016
Write VersionMajor/VersionMinor Uninstall values.
@robmen robmen merged commit 449296d into wixtoolset:develop Feb 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants