|
@@ -983,6 +983,8 @@ end;
|
|
{$ifdef win32}
|
|
{$ifdef win32}
|
|
StoreInherit:=ExecInheritsHandles;
|
|
StoreInherit:=ExecInheritsHandles;
|
|
ExecInheritsHandles:=true;
|
|
ExecInheritsHandles:=true;
|
|
|
|
+ { Avoid dialog boxes if dll loading fails }
|
|
|
|
+ SetErrorMode(SEM_FAILCRITICALERRORS);
|
|
{$endif win32}
|
|
{$endif win32}
|
|
DosError:=0;
|
|
DosError:=0;
|
|
If UseComSpec then
|
|
If UseComSpec then
|
|
@@ -1000,6 +1002,7 @@ end;
|
|
end;
|
|
end;
|
|
{$ifdef win32}
|
|
{$ifdef win32}
|
|
ExecInheritsHandles:=StoreInherit;
|
|
ExecInheritsHandles:=StoreInherit;
|
|
|
|
+ SetErrorMode(0);
|
|
{$endif win32}
|
|
{$endif win32}
|
|
IOStatus:=DosError;
|
|
IOStatus:=DosError;
|
|
ExecuteResult:=DosExitCode;
|
|
ExecuteResult:=DosExitCode;
|