mirror of https://gitlab.com/basile.b/dexed.git
removed invalid cmp
This commit is contained in:
parent
8b880edddf
commit
750a8761b9
|
@ -6,7 +6,7 @@ interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
|
|
||||||
Classes, SysUtils, strutils,
|
Classes, SysUtils,
|
||||||
{$IFDEF WINDOWS}
|
{$IFDEF WINDOWS}
|
||||||
Windows, JwaTlHelp32,
|
Windows, JwaTlHelp32,
|
||||||
{$ELSE}
|
{$ELSE}
|
||||||
|
|
|
@ -117,7 +117,7 @@ procedure TCEProcInputWidget.sendInput;
|
||||||
var
|
var
|
||||||
inp: string;
|
inp: string;
|
||||||
begin
|
begin
|
||||||
if fProc.Input.isNil or (fProc.Input.Handle = INVALID_HANDLE_VALUE) then
|
if fProc.Input.isNil or (fProc.Input.Handle = 0) then
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
fMru.Insert(0,txtInp.Text);
|
fMru.Insert(0,txtInp.Text);
|
||||||
|
@ -139,7 +139,7 @@ end;
|
||||||
procedure TCEProcInputWidget.btnCloseClick(Sender: TObject);
|
procedure TCEProcInputWidget.btnCloseClick(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
if fProc.isNotNil and fProc.Input.isNotNil and
|
if fProc.isNotNil and fProc.Input.isNotNil and
|
||||||
(fProc.Input.Handle <> INVALID_HANDLE_VALUE) then
|
(fProc.Input.Handle <> 0) then
|
||||||
fProc.CloseInput;
|
fProc.CloseInput;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue