Skip to content

Conversation

@DHowett
Copy link
Member

@DHowett DHowett commented Nov 12, 2024

No description provided.

}

const auto modernValue{ wil::reg::try_get_value<uint32_t>(distroKey.get(), RegKeyModern) };
if (modernValue == 1u)
Copy link
Member Author

Choose a reason for hiding this comment

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

it's an optional - nullopt is != 1 :)

Copy link
Member

Choose a reason for hiding this comment

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

I'd prefer if this was .value_or(0) != 0 because that would more accurately represent "truthy".

Copy link
Member

@lhecker lhecker left a comment

Choose a reason for hiding this comment

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

So... what does this do? :D

@DHowett DHowett merged commit 00ff803 into main Nov 13, 2024
@DHowett DHowett deleted the dev/duhowett/wsl-modernize branch November 13, 2024 22:12
DHowett added a commit that referenced this pull request Nov 15, 2024
(cherry picked from commit 00ff803)
Service-Card-Id: PVTI_lADOAF3p4s4AmhmszgUu4sc
Service-Version: 1.21
DHowett added a commit that referenced this pull request Nov 15, 2024
(cherry picked from commit 00ff803)
Service-Card-Id: PVTI_lADOAF3p4s4AmhmQzgUu4sg
Service-Version: 1.22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

5 participants