use DEBUG_ONLY_THIS_PROCESS

git-svn-id: svn://svn.code.sf.net/p/processhacker/code@4897 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
wj32
2011-11-21 11:50:23 +00:00
parent 0cad44e27a
commit c38d0735ea
+1 -1
View File
@@ -1169,7 +1169,7 @@ BOOLEAN PhCreateProcessIgnoreIfeoDebugger(
// The combination of ReadImageFileExecOptions = FALSE and the DEBUG_PROCESS flag
// allows us to skip the Debugger IFEO value.
if (CreateProcess(FileName, NULL, NULL, NULL, FALSE, DEBUG_PROCESS, NULL, NULL, &startupInfo, &processInfo))
if (CreateProcess(FileName, NULL, NULL, NULL, FALSE, DEBUG_PROCESS | DEBUG_ONLY_THIS_PROCESS, NULL, NULL, &startupInfo, &processInfo))
{
// Stop debugging taskmgr.exe now.