From daa16a8b09980f3667ec407a356f22855e4eec92 Mon Sep 17 00:00:00 2001 From: Mitchell Chambers Date: Tue, 24 Oct 2023 17:21:51 +1100 Subject: [PATCH 1/2] issue #34 - resolve case mismatch in resource parser and schema --- .../GPRegistryPolicyFileParser.psm1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/Modules/GPRegistryPolicyFileParser/GPRegistryPolicyFileParser.psm1 b/source/Modules/GPRegistryPolicyFileParser/GPRegistryPolicyFileParser.psm1 index 5763d54..95701a5 100644 --- a/source/Modules/GPRegistryPolicyFileParser/GPRegistryPolicyFileParser.psm1 +++ b/source/Modules/GPRegistryPolicyFileParser/GPRegistryPolicyFileParser.psm1 @@ -655,7 +655,7 @@ class GPRegistryPolicy } ([RegType]::REG_DWORD) { - $Result = 'DWord' + $Result = 'Dword' } ([RegType]::REG_MULTI_SZ) { @@ -663,7 +663,7 @@ class GPRegistryPolicy } ([RegType]::REG_QWORD) { - $Result = 'QWord' + $Result = 'Qword' } default { @@ -692,7 +692,7 @@ class GPRegistryPolicy { $result = [RegType]::REG_BINARY } - 'DWord' + 'Dword' { $result = [RegType]::REG_DWORD } @@ -700,7 +700,7 @@ class GPRegistryPolicy { $result = [RegType]::REG_MULTI_SZ } - 'QWord' + 'Qword' { $result = [RegType]::REG_QWORD } From e132eccb9d2348f5037433f7192ea9d7ebb8818d Mon Sep 17 00:00:00 2001 From: Mitchell Chambers Date: Tue, 24 Oct 2023 17:30:58 +1100 Subject: [PATCH 2/2] add fix to change log --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bea4b53..7a61d23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - GPRegistryPolicyDsc - Fixed REG_MULTI_SZ double null termination issue ([issue #25](https://github.com/dsccommunity/GPRegistryPolicyDsc/issues/25)). + - Fixed GetRegTypeString() returns unsupported values for DWORD and QWORD ([issue #34](https://github.com/dsccommunity/GPRegistryPolicyDsc/issues/34)) ## [1.2.0] - 2020-03-13