removed invalid cmp

This commit is contained in:
Basile Burg 2016-03-11 11:37:09 +01:00
parent 8b880edddf
commit 750a8761b9
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ interface
uses
Classes, SysUtils, strutils,
Classes, SysUtils,
{$IFDEF WINDOWS}
Windows, JwaTlHelp32,
{$ELSE}

View File

@ -117,7 +117,7 @@ procedure TCEProcInputWidget.sendInput;
var
inp: string;
begin
if fProc.Input.isNil or (fProc.Input.Handle = INVALID_HANDLE_VALUE) then
if fProc.Input.isNil or (fProc.Input.Handle = 0) then
exit;
fMru.Insert(0,txtInp.Text);
@ -139,7 +139,7 @@ end;
procedure TCEProcInputWidget.btnCloseClick(Sender: TObject);
begin
if fProc.isNotNil and fProc.Input.isNotNil and
(fProc.Input.Handle <> INVALID_HANDLE_VALUE) then
(fProc.Input.Handle <> 0) then
fProc.CloseInput;
end;