summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/mRadio/mradio.dpr17
1 files changed, 9 insertions, 8 deletions
diff --git a/plugins/mRadio/mradio.dpr b/plugins/mRadio/mradio.dpr
index 71670e1947..9f55ee4f2b 100644
--- a/plugins/mRadio/mradio.dpr
+++ b/plugins/mRadio/mradio.dpr
@@ -156,17 +156,9 @@ begin
end;
function Load: int; cdecl;
-var
- desc:TPROTOCOLDESCRIPTOR;
begin
Langpack_register;
- // register protocol
- desc.cbSize:=SizeOf(desc);
- desc.szName:=PluginName;
- desc._type :=PROTOTYPE_VIRTUAL;
- Proto_RegisterModule(@desc);
-
// hooks and services
hhRadioStatus:=CreateHookableEvent(ME_RADIO_STATUS);
@@ -209,6 +201,15 @@ exports
Load, Unload,
MirandaPluginInfoEx;
+var
+ desc:TPROTOCOLDESCRIPTOR;
+
begin
+ // register protocol
+ desc.cbSize:=SizeOf(desc);
+ desc.szName:=PluginName;
+ desc._type :=PROTOTYPE_VIRTUAL;
+ Proto_RegisterModule(@desc);
+
DisableThreadLibraryCalls(hInstance);
end.