win_regedit: fix for same dword value (#26415)

This commit is contained in:
Jordan Borean 2017-07-05 08:17:49 +10:00 committed by GitHub
commit 8e9d04043a
2 changed files with 26 additions and 4 deletions

View file

@ -82,14 +82,14 @@ Function Compare-Data {
} else {
return $false
}
} elseif ($ReferenceData -is [string] -or $ReferenceData -is [int]) {
if ($ReferenceData -ceq $DifferenceData) {
} elseif ($ReferenceData -is [object[]]) {
if (@(Compare-Object $ReferenceData $DifferenceData -SyncWindow 0).Length -eq 0) {
return $true
} else {
return $false
}
} elseif ($ReferenceData -is [object[]]) {
if (@(Compare-Object $ReferenceData $DifferenceData -SyncWindow 0).Length -eq 0) {
} else {
if ($ReferenceData -ceq $DifferenceData) {
return $true
} else {
return $false