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]
|
||||
$StartAddress,
|
||||
|
||||
[Parameter(ParameterSetName = "EndAddress", Position = 3, Mandatory = $true)]
|
||||
[IntPtr]
|
||||
$EndAddress,
|
||||
|
||||
[Parameter(ParameterSetName = "Size", Position = 3, Mandatory = $true)]
|
||||
[IntPtr]
|
||||
$Size
|
||||
)
|
||||
|
||||
[IntPtr]$FinalEndAddress = [IntPtr]::Zero
|
||||
if ($PsCmdlet.ParameterSetName -eq "Size")
|
||||
{
|
||||
[IntPtr]$FinalEndAddress = [IntPtr](Add-SignedIntAsUnsigned ($StartAddress) ($Size))
|
||||
}
|
||||
else
|
||||
{
|
||||
$FinalEndAddress = $EndAddress
|
||||
}
|
||||
[IntPtr]$FinalEndAddress = [IntPtr](Add-SignedIntAsUnsigned ($StartAddress) ($Size))
|
||||
|
||||
$PEEndAddress = $PEInfo.EndAddress
|
||||
|
||||
|
|
|
|||
|
|
@ -802,24 +802,12 @@ $RemoteScriptBlock = {
|
|||
[IntPtr]
|
||||
$StartAddress,
|
||||
|
||||
[Parameter(ParameterSetName = "EndAddress", Position = 3, Mandatory = $true)]
|
||||
[IntPtr]
|
||||
$EndAddress,
|
||||
|
||||
[Parameter(ParameterSetName = "Size", Position = 3, Mandatory = $true)]
|
||||
[IntPtr]
|
||||
$Size
|
||||
)
|
||||
|
||||
[IntPtr]$FinalEndAddress = [IntPtr]::Zero
|
||||
if ($PsCmdlet.ParameterSetName -eq "Size")
|
||||
{
|
||||
[IntPtr]$FinalEndAddress = [IntPtr](Add-SignedIntAsUnsigned ($StartAddress) ($Size))
|
||||
}
|
||||
else
|
||||
{
|
||||
$FinalEndAddress = $EndAddress
|
||||
}
|
||||
[IntPtr]$FinalEndAddress = [IntPtr](Add-SignedIntAsUnsigned ($StartAddress) ($Size))
|
||||
|
||||
$PEEndAddress = $PEInfo.EndAddress
|
||||
|
||||
|
|
|
|||
|
|
@ -818,24 +818,12 @@ $RemoteScriptBlock = {
|
|||
[IntPtr]
|
||||
$StartAddress,
|
||||
|
||||
[Parameter(ParameterSetName = "EndAddress", Position = 3, Mandatory = $true)]
|
||||
[IntPtr]
|
||||
$EndAddress,
|
||||
|
||||
[Parameter(ParameterSetName = "Size", Position = 3, Mandatory = $true)]
|
||||
[IntPtr]
|
||||
$Size
|
||||
)
|
||||
|
||||
[IntPtr]$FinalEndAddress = [IntPtr]::Zero
|
||||
if ($PsCmdlet.ParameterSetName -eq "Size")
|
||||
{
|
||||
[IntPtr]$FinalEndAddress = [IntPtr](Add-SignedIntAsUnsigned ($StartAddress) ($Size))
|
||||
}
|
||||
else
|
||||
{
|
||||
$FinalEndAddress = $EndAddress
|
||||
}
|
||||
[IntPtr]$FinalEndAddress = [IntPtr](Add-SignedIntAsUnsigned ($StartAddress) ($Size))
|
||||
|
||||
$PEEndAddress = $PEInfo.EndAddress
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue