Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkCoderSc committed May 20, 2020
1 parent 4be10f2 commit 1be1ab0
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion RunAsAttached.dproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<MainSource>RunAsAttached.dpr</MainSource>
<Base>True</Base>
<Config Condition="'$(Config)'==''">Release</Config>
<Platform Condition="'$(Platform)'==''">Win32</Platform>
<Platform Condition="'$(Platform)'==''">Win64</Platform>
<TargetedPlatforms>3</TargetedPlatforms>
<AppType>Console</AppType>
</PropertyGroup>
Expand Down
13 changes: 0 additions & 13 deletions Units/UntStdHandlers.pas
Original file line number Diff line number Diff line change
Expand Up @@ -98,24 +98,11 @@ procedure TStdoutHandler.Execute();
Exit();
end;

if NOT SetHandleInformation(APipeOutRead, HANDLE_FLAG_INHERIT, 0) then begin
DumpLastError('SetHandleInformation(1)');

Exit();
end;

if NOT CreatePipe(APipeInRead, APipeInWrite, @ASecAttribs, 0) then begin
DumpLastError('CreatePipe(2)');

Exit();
end;

if NOT SetHandleInformation(APipeInWrite, HANDLE_FLAG_INHERIT, 0) then begin
DumpLastError('SetHandleInformation(2)');

Exit();
end;

///
try
AStartupInfo.cb := SizeOf(TStartupInfo);
Expand Down
Binary file modified Win32/Release/RunAsAttached.exe
Binary file not shown.
Binary file modified Win64/Release/RunAsAttached.exe
Binary file not shown.

0 comments on commit 1be1ab0

Please sign in to comment.