diff options
author | George Hazan <george.hazan@gmail.com> | 2013-03-06 18:58:49 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-03-06 18:58:49 +0000 |
commit | 665ab2181d58fa5c82f598c1188408f8711b1f0d (patch) | |
tree | 4c362903878a19ec9aaf32bc92a3516a17564b52 /plugins/Actman | |
parent | 7fc9837e1f9bbd0f0687fea96cda8dfbf4c1932b (diff) |
mir_forkthead doesn't return a closeable thread handle, no need to call CreateThread to close it
git-svn-id: http://svn.miranda-ng.org/main/trunk@3907 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Actman')
-rw-r--r-- | plugins/Actman/i_actlow.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Actman/i_actlow.inc b/plugins/Actman/i_actlow.inc index a749aef27f..a620471398 100644 --- a/plugins/Actman/i_actlow.inc +++ b/plugins/Actman/i_actlow.inc @@ -600,7 +600,7 @@ begin tmp^.group :=group;
tmp^.last :=alast;
tmp^.event :=CreateEvent(nil,FALSE,FALSE,nil);
- CloseHandle(mir_forkthread(@ThDoAction,tmp));
+ mir_forkthread(@ThDoAction,tmp);
WaitForSingleObjectEx(tmp.event,INFINITE,true);
CloseHandle(tmp^.event);
result:=tmp^.last;
@@ -617,7 +617,7 @@ begin tmp^.group :=group;
tmp^.last :=alast;
tmp^.event :=0;
- CloseHandle(mir_forkthread(@ThDoAction,tmp));
+ mir_forkthread(@ThDoAction,tmp);
end;
procedure ReallocActionList(var ActList:pActList;var MaxAct:cardinal);
|