Skip to content

Commit

Permalink
small RunCommand() internal documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud Bouchez committed Sep 12, 2023
1 parent 23c1ec8 commit 8f8369c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/core/mormot.core.os.windows.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4691,15 +4691,16 @@ var
if redirected <> nil then
begin
SetLength(redirected^, l + PtrInt(n));
MoveFast(tmp, PByteArray(redirected^)[l], n);
MoveFast(tmp, PByteArray(redirected^)[l], n); // append without convert
inc(l, n);
end;
if Assigned(onoutput) then
begin
SetString(new, PAnsiChar(@tmp), n);
if onoutput(new, processinfo.dwProcessId) then
if onoutput(new, processinfo.dwProcessId) then // notify new content
// onoutput() callback returned true to stop the execution
if not flush then
begin // onoutput() callback returned true to stop the execution
begin
exitcode := WAIT_OBJECT_0;
break;
end;
Expand Down
2 changes: 1 addition & 1 deletion src/mormot.commit.inc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
'2.1.5866'
'2.1.5867'

0 comments on commit 8f8369c

Please sign in to comment.