From 665ab2181d58fa5c82f598c1188408f8711b1f0d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 6 Mar 2013 18:58:49 +0000 Subject: 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 --- plugins/Watrack/lastfm/lastfm.pas | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/Watrack/lastfm') diff --git a/plugins/Watrack/lastfm/lastfm.pas b/plugins/Watrack/lastfm/lastfm.pas index 7f2d90b0dd..1b7d3e0f3d 100644 --- a/plugins/Watrack/lastfm/lastfm.pas +++ b/plugins/Watrack/lastfm/lastfm.pas @@ -73,7 +73,7 @@ begin if (lfm_login <>nil) and (lfm_login^ <>#0) and (lfm_password<>nil) and (lfm_password^<>#0) then - CloseHandle(mir_forkthread(@ThScrobble,nil)); + mir_forkthread(@ThScrobble,nil); end; function NewPlStatus(wParam:WPARAM;lParam:LPARAM):int;cdecl; @@ -116,7 +116,7 @@ begin mi.flags :=CMIM_FLAGS+flag; CallService(MS_CLIST_MODIFYMENUITEM,hMenuLast,tlparam(@mi)); end; - + WAT_EVENT_PLAYERSTATUS: begin case Integer(loword(lParam)) of WAT_PLS_NOMUSIC,WAT_PLS_NOTFOUND: begin @@ -200,7 +200,7 @@ begin sid.szDescription.a:='LastFM'; Skin_AddIcon(@sid); DestroyIcon(sid.hDefaultIcon); - + FillChar(mi, sizeof(mi), 0); mi.cbSize :=sizeof(mi); mi.szPopupName.a:=PluginShort; -- cgit v1.2.3