Bugfix #93
Removed the "EndAddress" parameter set since it was never used. This should resolve any parameter set confusion.
This commit is contained in:
parent
ce3b21685a
commit
00af1656b2
|
|
@ -912,24 +912,12 @@ $RemoteScriptBlock = {
|
||||||
[IntPtr]
|
[IntPtr]
|
||||||
$StartAddress,
|
$StartAddress,
|
||||||
|
|
||||||
[Parameter(ParameterSetName = "EndAddress", Position = 3, Mandatory = $true)]
|
|
||||||
[IntPtr]
|
|
||||||
$EndAddress,
|
|
||||||
|
|
||||||
[Parameter(ParameterSetName = "Size", Position = 3, Mandatory = $true)]
|
[Parameter(ParameterSetName = "Size", Position = 3, Mandatory = $true)]
|
||||||
[IntPtr]
|
[IntPtr]
|
||||||
$Size
|
$Size
|
||||||
)
|
)
|
||||||
|
|
||||||
[IntPtr]$FinalEndAddress = [IntPtr]::Zero
|
[IntPtr]$FinalEndAddress = [IntPtr](Add-SignedIntAsUnsigned ($StartAddress) ($Size))
|
||||||
if ($PsCmdlet.ParameterSetName -eq "Size")
|
|
||||||
{
|
|
||||||
[IntPtr]$FinalEndAddress = [IntPtr](Add-SignedIntAsUnsigned ($StartAddress) ($Size))
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$FinalEndAddress = $EndAddress
|
|
||||||
}
|
|
||||||
|
|
||||||
$PEEndAddress = $PEInfo.EndAddress
|
$PEEndAddress = $PEInfo.EndAddress
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -802,24 +802,12 @@ $RemoteScriptBlock = {
|
||||||
[IntPtr]
|
[IntPtr]
|
||||||
$StartAddress,
|
$StartAddress,
|
||||||
|
|
||||||
[Parameter(ParameterSetName = "EndAddress", Position = 3, Mandatory = $true)]
|
|
||||||
[IntPtr]
|
|
||||||
$EndAddress,
|
|
||||||
|
|
||||||
[Parameter(ParameterSetName = "Size", Position = 3, Mandatory = $true)]
|
[Parameter(ParameterSetName = "Size", Position = 3, Mandatory = $true)]
|
||||||
[IntPtr]
|
[IntPtr]
|
||||||
$Size
|
$Size
|
||||||
)
|
)
|
||||||
|
|
||||||
[IntPtr]$FinalEndAddress = [IntPtr]::Zero
|
[IntPtr]$FinalEndAddress = [IntPtr](Add-SignedIntAsUnsigned ($StartAddress) ($Size))
|
||||||
if ($PsCmdlet.ParameterSetName -eq "Size")
|
|
||||||
{
|
|
||||||
[IntPtr]$FinalEndAddress = [IntPtr](Add-SignedIntAsUnsigned ($StartAddress) ($Size))
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$FinalEndAddress = $EndAddress
|
|
||||||
}
|
|
||||||
|
|
||||||
$PEEndAddress = $PEInfo.EndAddress
|
$PEEndAddress = $PEInfo.EndAddress
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -818,24 +818,12 @@ $RemoteScriptBlock = {
|
||||||
[IntPtr]
|
[IntPtr]
|
||||||
$StartAddress,
|
$StartAddress,
|
||||||
|
|
||||||
[Parameter(ParameterSetName = "EndAddress", Position = 3, Mandatory = $true)]
|
|
||||||
[IntPtr]
|
|
||||||
$EndAddress,
|
|
||||||
|
|
||||||
[Parameter(ParameterSetName = "Size", Position = 3, Mandatory = $true)]
|
[Parameter(ParameterSetName = "Size", Position = 3, Mandatory = $true)]
|
||||||
[IntPtr]
|
[IntPtr]
|
||||||
$Size
|
$Size
|
||||||
)
|
)
|
||||||
|
|
||||||
[IntPtr]$FinalEndAddress = [IntPtr]::Zero
|
[IntPtr]$FinalEndAddress = [IntPtr](Add-SignedIntAsUnsigned ($StartAddress) ($Size))
|
||||||
if ($PsCmdlet.ParameterSetName -eq "Size")
|
|
||||||
{
|
|
||||||
[IntPtr]$FinalEndAddress = [IntPtr](Add-SignedIntAsUnsigned ($StartAddress) ($Size))
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$FinalEndAddress = $EndAddress
|
|
||||||
}
|
|
||||||
|
|
||||||
$PEEndAddress = $PEInfo.EndAddress
|
$PEEndAddress = $PEInfo.EndAddress
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue