|
@@ -48,6 +48,8 @@ implementation
|
|
|
{$DEFINE FPC_FEXPAND_UNC} (* UNC paths are supported *)
|
|
|
{$DEFINE FPC_FEXPAND_DRIVES} (* Full paths begin with drive specification *)
|
|
|
|
|
|
+{$DEFINE executeprocuni} (* Only 1 byte version of ExecuteProcess is provided by the OS *)
|
|
|
+
|
|
|
{ Include platform independent implementation part }
|
|
|
{$i sysutils.inc}
|
|
|
|
|
@@ -842,10 +844,10 @@ end;
|
|
|
{$endif}
|
|
|
|
|
|
|
|
|
-function ExecuteProcess(Const Path: AnsiString; Const ComLine: AnsiString;Flags:TExecuteFlags=[]):integer;
|
|
|
+function ExecuteProcess(Const Path: RawByteString; Const ComLine: RawByteString;Flags:TExecuteFlags=[]):integer;
|
|
|
var
|
|
|
e : EOSError;
|
|
|
- CommandLine: AnsiString;
|
|
|
+ CommandLine: RawByteString;
|
|
|
|
|
|
begin
|
|
|
dos.exec_ansistring(path,comline);
|
|
@@ -864,11 +866,11 @@ begin
|
|
|
end;
|
|
|
|
|
|
|
|
|
-function ExecuteProcess (const Path: AnsiString;
|
|
|
- const ComLine: array of AnsiString;Flags:TExecuteFlags=[]): integer;
|
|
|
+function ExecuteProcess (const Path: RawByteString;
|
|
|
+ const ComLine: array of RawByteString;Flags:TExecuteFlags=[]): integer;
|
|
|
|
|
|
var
|
|
|
- CommandLine: AnsiString;
|
|
|
+ CommandLine: RawByteString;
|
|
|
I: integer;
|
|
|
|
|
|
begin
|