Skip to content
This repository has been archived by the owner on Apr 3, 2022. It is now read-only.

Commit

Permalink
Fix minor compile issues with WindowsVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
spikespaz committed Jul 6, 2020
1 parent 5a60da6 commit 284ab50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/common.d
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,13 @@ static struct DeflectorSettings {
/// Structure containing Windows version information
static struct WindowsVersion {
/// ditto
string release, build, edition, insiderRing;
static string release, build, edition, insiderRing;

/// Fetch all version info from registry
static this() {
try {
key insiderInfo = Registry.localMachine.getKey("SOFTWARE\\Microsoft\\WindowsSelfHost\\Applicability", REGSAM.KEY_READ);
insiderRing = insiderInfo.getValue("BranchName");
Key insiderInfo = Registry.localMachine.getKey("SOFTWARE\\Microsoft\\WindowsSelfHost\\Applicability", REGSAM.KEY_READ);
insiderRing = insiderInfo.getValue("BranchName").value_SZ;
} catch (RegistryException)
insiderRing = null;

Expand Down

0 comments on commit 284ab50

Please sign in to comment.