Skip to content

Commit

Permalink
Fix: uninitialized variable which is bug prone
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkCoderSc committed Aug 12, 2024
1 parent 3e56980 commit a78e72e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PowerRunAsSystem/PowerRunAsSystem.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ $global:InvokeInteractiveProcessScriptBlock = {

$activeSession = -1

for ($i; $i -lt $sessionCount; $i++)
for ($i = 0; $i -lt $sessionCount; $i++)
{
[IntPtr] $pOffset = [IntPtr]([Int64]$pSessionArray + ($i * $structSize))

Expand Down

0 comments on commit a78e72e

Please sign in to comment.