Browse Source

Closed handles when ShellExecuteExW with SEE_MASK_NOCLOSEPROCESS

pull/400/head 22000.318.37.2_abf0d38
Valentin Radu 4 years ago
parent
commit
abf0d38cb4
  1. 1
      ExplorerPatcher/GUI.c
  2. 1
      ep_setup/ep_setup.c
  3. 1
      ep_setup_patch/ep_setup_patch.c

1
ExplorerPatcher/GUI.c

@ -974,6 +974,7 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt) @@ -974,6 +974,7 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt)
{
}
CloseHandle(sei.hProcess);
}
else
{

1
ep_setup/ep_setup.c

@ -431,6 +431,7 @@ int WINAPI wWinMain( @@ -431,6 +431,7 @@ int WINAPI wWinMain(
DWORD dwExitCode = 0;
GetExitCodeProcess(sei.hProcess, &dwExitCode);
SetLastError(dwExitCode);
CloseHandle(sei.hProcess);
}
}
}

1
ep_setup_patch/ep_setup_patch.c

@ -61,6 +61,7 @@ int main(int argc, char** argv) @@ -61,6 +61,7 @@ int main(int argc, char** argv)
WaitForSingleObject(ShExecInfo.hProcess, INFINITE);
DWORD dwExitCode = 0;
GetExitCodeProcess(ShExecInfo.hProcess, &dwExitCode);
CloseHandle(ShExecInfo.hProcess);
return dwExitCode;
}
}

Loading…
Cancel
Save