From 01e9a0afa085410c7831b60289e62e1dd1b5148c Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Mon, 16 Jan 2012 12:35:41 +0100 Subject: [PATCH] Installer: Remove some out-commented code Signed-off-by: Sebastian Schuberth --- share/WinGit/modules.inc.iss | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/share/WinGit/modules.inc.iss b/share/WinGit/modules.inc.iss index f641a214..5f18bf6b 100644 --- a/share/WinGit/modules.inc.iss +++ b/share/WinGit/modules.inc.iss @@ -518,24 +518,21 @@ begin if (Success=ERROR_SUCCESS) and (Needed>0) then begin for i:=0 to Needed-1 do begin - // Optionally, only list non-critical stand-alone processes that do not require a forced shutdown. - //if (AppList[i].ApplicationType=RmMainWindow) or (AppList[i].ApplicationType=RmExplorer) or (AppList[i].ApplicationType=RmConsole) then begin - Process:=OpenProcess(PROCESS_QUERY_INFORMATION or PROCESS_VM_READ,False,AppList[i].Process.dwProcessId); - if Process<>0 then begin - SetLength(Path,MAX_PATH); - PathLength:=GetModuleFileNameEx(Process,0,Path,MAX_PATH); - SetLength(Path,PathLength); - - Have:=GetArrayLength(Processes); - SetArrayLength(Processes,Have+1); - Processes[Have].ID:=AppList[i].Process.dwProcessId; - Processes[Have].Path:=Path; - Processes[Have].Name:=ArrayToString(AppList[i].strAppName); - Processes[Have].Restartable:=AppList[i].bRestartable; - - CloseHandle(Process); - end; - //end; + Process:=OpenProcess(PROCESS_QUERY_INFORMATION or PROCESS_VM_READ,False,AppList[i].Process.dwProcessId); + if Process<>0 then begin + SetLength(Path,MAX_PATH); + PathLength:=GetModuleFileNameEx(Process,0,Path,MAX_PATH); + SetLength(Path,PathLength); + + Have:=GetArrayLength(Processes); + SetArrayLength(Processes,Have+1); + Processes[Have].ID:=AppList[i].Process.dwProcessId; + Processes[Have].Path:=Path; + Processes[Have].Name:=ArrayToString(AppList[i].strAppName); + Processes[Have].Restartable:=AppList[i].bRestartable; + + CloseHandle(Process); + end; end; Result:=True; end; -- 2.11.4.GIT