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

wsl: skip distributions that indicate they are "Modern" #18183

Merged
merged 3 commits into from
Nov 13, 2024

Conversation

DHowett
Copy link
Member

@DHowett DHowett commented Nov 12, 2024

No description provided.

@@ -188,6 +189,12 @@ static bool getWslNames(const wil::unique_hkey& wslRootKey,
continue;
}

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
19 checks passed
@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
Status: Cherry Picked
Status: Cherry Picked
Development

Successfully merging this pull request may close these issues.

4 participants