summaryrefslogtreecommitdiff
path: root/plugins/Watrack/watrack.dpr
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2016-12-02 22:21:55 +0300
committerGeorge Hazan <ghazan@miranda.im>2016-12-02 22:21:55 +0300
commit10091bbca1380a1d8e3b9d61b8c175490036af5b (patch)
treeb08bd16212909ac1b72bfefaa70ab71b4e63974d /plugins/Watrack/watrack.dpr
parent2347a641948e9082b0e842eb0a8480abdfba09e0 (diff)
old shit died
now there's no need to create fake services & events
Diffstat (limited to 'plugins/Watrack/watrack.dpr')
-rw-r--r--plugins/Watrack/watrack.dpr15
1 files changed, 2 insertions, 13 deletions
diff --git a/plugins/Watrack/watrack.dpr b/plugins/Watrack/watrack.dpr
index c1c947704a..478ced86a1 100644
--- a/plugins/Watrack/watrack.dpr
+++ b/plugins/Watrack/watrack.dpr
@@ -417,14 +417,10 @@ begin
NotifyEventHooks(hHookWATStatus,WAT_EVENT_PLUGINSTATUS,DisablePlugin);
end;
-function WaitAllModules(wParam:WPARAM;lParam:LPARAM):int;cdecl;
+procedure WaitAllModules; stdcall;
var
ptr:pwModule;
begin
- result:=0;
-
- CallService(MS_SYSTEM_REMOVEWAIT,wParam,0);
-
ptr:=ModuleLink;
while ptr<>nil do
begin
@@ -439,7 +435,6 @@ begin
StartTimer;
NotifyEventHooks(hHookWATLoaded,0,0);
- CloseHandle(hEvent);
end;
procedure DoTheDew(load:boolean);
@@ -561,13 +556,7 @@ begin
end;
// Load WATrack modules
- hEvent:=CreateEvent(nil,true,true,nil);
- if hEvent<>0 then
- begin
- p:='WAT_INIT';
- CreateServiceFunction(p,@WaitAllModules);
- CallService(MS_SYSTEM_WAITONHANDLE,hEvent,tlparam(p));
- end;
+ Miranda_WaitOnHandle(@WaitAllModules, 0);
LoadOpt;
if DisablePlugin=dsPermanent then