mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 13:29:24 +02:00
*wince : fix longint/longword issue
git-svn-id: trunk@3344 -
This commit is contained in:
parent
34f1c427eb
commit
b9a0cd4d1f
@ -13,7 +13,7 @@
|
||||
|
||||
**********************************************************************}
|
||||
|
||||
Function CreatePipeHandles (Var Inhandle,OutHandle : Longint) : Boolean;
|
||||
Function CreatePipeHandles (Var Inhandle,OutHandle : THandle) : Boolean;
|
||||
// No pipes under dos, sorry...
|
||||
begin
|
||||
Result := False;
|
||||
|
@ -136,25 +136,11 @@ end;
|
||||
|
||||
Procedure CreatePipes(Var HI,HO,HE : Thandle; Var SI : TStartupInfo; CE : Boolean);
|
||||
|
||||
Procedure DoCreatePipeHandles(Var H1,H2 : THandle);
|
||||
|
||||
Var
|
||||
I,O : Longint;
|
||||
|
||||
begin
|
||||
CreatePipeHandles(I,O);
|
||||
H1:=Thandle(I);
|
||||
H2:=THandle(O);
|
||||
end;
|
||||
|
||||
|
||||
|
||||
|
||||
begin
|
||||
DoCreatePipeHandles(SI.hStdInput,HI);
|
||||
DoCreatePipeHandles(HO,Si.hStdOutput);
|
||||
CreatePipeHandles(SI.hStdInput,HI);
|
||||
CreatePipeHandles(HO,Si.hStdOutput);
|
||||
if CE then
|
||||
DoCreatePipeHandles(HE,SI.hStdError)
|
||||
CreatePipeHandles(HE,SI.hStdError)
|
||||
else
|
||||
begin
|
||||
SI.hStdError:=SI.hStdOutput;
|
||||
|
Loading…
Reference in New Issue
Block a user