diff options
Diffstat (limited to 'plugins/mRadio')
-rw-r--r-- | plugins/mRadio/i_cc.inc | 10 | ||||
-rw-r--r-- | plugins/mRadio/i_search.inc | 4 | ||||
-rw-r--r-- | plugins/mRadio/i_service.inc | 4 |
3 files changed, 9 insertions, 9 deletions
diff --git a/plugins/mRadio/i_cc.inc b/plugins/mRadio/i_cc.inc index deb993ec0c..c9364d1e8a 100644 --- a/plugins/mRadio/i_cc.inc +++ b/plugins/mRadio/i_cc.inc @@ -21,7 +21,7 @@ var p:pWideChar;
begin
astrlen:=StrLenW(artist);
-
+
tstrlen:=0;
// if need to remove duplicate
if (title<>nil) and (title^<>#0) then
@@ -159,7 +159,7 @@ begin if PlayFirst=BST_UNCHECKED then
plist.Track:=DBReadWord(ActiveContact,PluginName,optCurElement);
end;
-
+
mFreeMem(ActiveURLw);
ActiveURLw:=plist.GetSong;
end;
@@ -182,7 +182,7 @@ begin ControlCenter(MRC_STATUS,RD_STATUS_NEWSTATION);
if Assigned(plist) then
ControlCenter(MRC_STATUS,RD_STATUS_CONNECT);
- CloseHandle(mir_forkthread(@OpenURL,ActiveURLw));
+ mir_forkthread(@OpenURL,ActiveURLw);
end;
end
// play current from start
@@ -195,7 +195,7 @@ begin // play playlist entry?
else if Assigned(plist) and (ActiveURLw<>nil) and (ActiveURLw^<>#0) then
begin
- CloseHandle(mir_forkthread(@OpenURL,ActiveURLw));
+ mir_forkthread(@OpenURL,ActiveURLw);
end;
end;
@@ -425,7 +425,7 @@ begin mFreeMem(artist);
mFreeMem(title);
end;
-
+
NotifyEventHooks(hhRadioStatus,code,arg);
end;
diff --git a/plugins/mRadio/i_search.inc b/plugins/mRadio/i_search.inc index ffd0b8b6de..bcbe6662a7 100644 --- a/plugins/mRadio/i_search.inc +++ b/plugins/mRadio/i_search.inc @@ -182,7 +182,7 @@ begin else
begin
result:=AckHandle;
- CloseHandle(mir_forkthread(@BasicSearch,StrDup(PAnsiChar(lParam),PAnsiChar(lParam))));
+ mir_forkthread(@BasicSearch,StrDup(PAnsiChar(lParam),PAnsiChar(lParam)));
end;
end;
@@ -193,7 +193,7 @@ begin else
begin
result:=AckHandle;
- CloseHandle(mir_forkthread(@ExtSearch,pointer(lParam)));
+ mir_forkthread(@ExtSearch,pointer(lParam));
end;
end;
diff --git a/plugins/mRadio/i_service.inc b/plugins/mRadio/i_service.inc index 4f12544a81..05072dfd94 100644 --- a/plugins/mRadio/i_service.inc +++ b/plugins/mRadio/i_service.inc @@ -99,7 +99,7 @@ begin if (ccs^.hContact<>0) and (PluginStatus=ID_STATUS_ONLINE) and
(DBReadWord(ccs^.hContact,PluginName,optStatus,ID_STATUS_OFFLINE)=ID_STATUS_ONLINE) then
begin
- CloseHandle(mir_forkthread(@GetAwayMsgProc,pointer(ccs^.hContact)));
+ mir_forkthread(@GetAwayMsgProc,pointer(ccs^.hContact));
result:=AckHandle;
end
else
@@ -202,7 +202,7 @@ begin Asks protocol for the status message for a status
wParam=(WORD) 0 for current status or a status id
lParam=SGMA_xxx
- Returns status msg or NULL if there is none. The protocol have to handle only the current
+ Returns status msg or NULL if there is none. The protocol have to handle only the current
status. Handling messages for other statuses is optional.
Remember to mir_free the return value
}
|