Skip to content

Commit 2f3f287

Browse files
Mattiwattimrexodia
authored andcommitted
Remove 2 occurrences of 'varset("$hp", fdProcessInfo->hProcess)', one of which was being called with the initial handle from CreateProcess(). cbCreateProcess is now the only place where this variable is set, for both types of debug sessions (attaching or creating)
1 parent 629a602 commit 2f3f287

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/dbg/debugger.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1990,7 +1990,6 @@ static void cbAttachDebugger()
19901990
cmddirectexec(StringUtils::sprintf("resumethread %p", tidToResume).c_str());
19911991
tidToResume = 0;
19921992
}
1993-
varset("$hp", (duint)fdProcessInfo->hProcess, true);
19941993
varset("$pid", fdProcessInfo->dwProcessId, true);
19951994
}
19961995

@@ -2662,7 +2661,6 @@ static void debugLoopFunction(void* lpParameter, bool attach)
26622661
}
26632662

26642663
//set script variables
2665-
varset("$hp", (duint)fdProcessInfo->hProcess, true);
26662664
varset("$pid", fdProcessInfo->dwProcessId, true);
26672665

26682666
if(!OpenProcessToken(fdProcessInfo->hProcess, TOKEN_ALL_ACCESS, &hProcessToken))

0 commit comments

Comments
 (0)