This repository was archived by the owner on Jan 21, 2021. It is now read-only.
File tree 3 files changed +3
-39
lines changed
3 files changed +3
-39
lines changed Original file line number Diff line number Diff line change @@ -912,24 +912,12 @@ $RemoteScriptBlock = {
912
912
[IntPtr ]
913
913
$StartAddress ,
914
914
915
- [Parameter (ParameterSetName = " EndAddress" , Position = 3 , Mandatory = $true )]
916
- [IntPtr ]
917
- $EndAddress ,
918
-
919
915
[Parameter (ParameterSetName = " Size" , Position = 3 , Mandatory = $true )]
920
916
[IntPtr ]
921
917
$Size
922
918
)
923
919
924
- [IntPtr ]$FinalEndAddress = [IntPtr ]::Zero
925
- if ($PsCmdlet.ParameterSetName -eq " Size" )
926
- {
927
- [IntPtr ]$FinalEndAddress = [IntPtr ](Add-SignedIntAsUnsigned ($StartAddress ) ($Size ))
928
- }
929
- else
930
- {
931
- $FinalEndAddress = $EndAddress
932
- }
920
+ [IntPtr ]$FinalEndAddress = [IntPtr ](Add-SignedIntAsUnsigned ($StartAddress ) ($Size ))
933
921
934
922
$PEEndAddress = $PEInfo.EndAddress
935
923
Original file line number Diff line number Diff line change @@ -802,24 +802,12 @@ $RemoteScriptBlock = {
802
802
[IntPtr]
803
803
$StartAddress,
804
804
805
- [Parameter(ParameterSetName = "EndAddress", Position = 3, Mandatory = $true)]
806
- [IntPtr]
807
- $EndAddress,
808
-
809
805
[Parameter(ParameterSetName = "Size", Position = 3, Mandatory = $true)]
810
806
[IntPtr]
811
807
$Size
812
808
)
813
809
814
- [IntPtr]$FinalEndAddress = [IntPtr]::Zero
815
- if ($PsCmdlet.ParameterSetName -eq "Size")
816
- {
817
- [IntPtr]$FinalEndAddress = [IntPtr](Add-SignedIntAsUnsigned ($StartAddress) ($Size))
818
- }
819
- else
820
- {
821
- $FinalEndAddress = $EndAddress
822
- }
810
+ [IntPtr]$FinalEndAddress = [IntPtr](Add-SignedIntAsUnsigned ($StartAddress) ($Size))
823
811
824
812
$PEEndAddress = $PEInfo.EndAddress
825
813
Original file line number Diff line number Diff line change @@ -818,24 +818,12 @@ $RemoteScriptBlock = {
818
818
[IntPtr ]
819
819
$StartAddress ,
820
820
821
- [Parameter (ParameterSetName = " EndAddress" , Position = 3 , Mandatory = $true )]
822
- [IntPtr ]
823
- $EndAddress ,
824
-
825
821
[Parameter (ParameterSetName = " Size" , Position = 3 , Mandatory = $true )]
826
822
[IntPtr ]
827
823
$Size
828
824
)
829
825
830
- [IntPtr ]$FinalEndAddress = [IntPtr ]::Zero
831
- if ($PsCmdlet.ParameterSetName -eq " Size" )
832
- {
833
- [IntPtr ]$FinalEndAddress = [IntPtr ](Add-SignedIntAsUnsigned ($StartAddress ) ($Size ))
834
- }
835
- else
836
- {
837
- $FinalEndAddress = $EndAddress
838
- }
826
+ [IntPtr ]$FinalEndAddress = [IntPtr ](Add-SignedIntAsUnsigned ($StartAddress ) ($Size ))
839
827
840
828
$PEEndAddress = $PEInfo.EndAddress
841
829
You can’t perform that action at this time.
0 commit comments