This project is read-only.
1
Vote

Test-RegKey improperly closes subkey if not found

description

Test-RegKey improperly closes subkey if it is not found.

Lines 105:106
                Write-Verbose "Closing remote registry connection on: [$c]."
                $subKey.close()
should be moved to lines 99:100, so subkey is only closed if it is actually found. Patched version attached.

file attachments

comments

Shay wrote Aug 26, 2014 at 12:43 PM

Thanks, will update it in next release!