summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAlexey Kulakov <panda75@bk.ru>2014-12-08 17:39:05 +0000
committerAlexey Kulakov <panda75@bk.ru>2014-12-08 17:39:05 +0000
commit1b9d8c49650617f71a94744960a08f05ae64e0fe (patch)
treeea1bc9c1a20cef8e2f140cbda3e90507bea979dd /plugins
parent042d05df11513eb57c0f92c95113f65c73755833 (diff)
small unneded fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@11277 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Actman/actman.dpr11
-rw-r--r--plugins/Actman/i_dlglists.inc2
-rw-r--r--plugins/Actman/i_opt_dlg2.inc5
3 files changed, 13 insertions, 5 deletions
diff --git a/plugins/Actman/actman.dpr b/plugins/Actman/actman.dpr
index 1296ab9f9c..4a5c795bd1 100644
--- a/plugins/Actman/actman.dpr
+++ b/plugins/Actman/actman.dpr
@@ -126,6 +126,15 @@ begin
DestroyServiceFunction(hsel);
end;
+// This function implements autostart action execution after all others plugins loading
+function DoAutostart(wParam:WPARAM;lParam:LPARAM):int;cdecl;
+begin
+ Result:=0;
+ UnhookEvent(onloadhook);
+
+ CallService(MS_ACT_RUNBYNAME,TWPARAM(AutoStartName),0);
+end;
+
function OnModulesLoaded(wParam:WPARAM;lParam:LPARAM):int;cdecl;
var
ptr:pActionLink;
@@ -150,7 +159,7 @@ begin
ptr:=ptr^.Next;
end;
- CallService(MS_ACT_RUNBYNAME,TWPARAM(AutoStartName),0);
+ onloadhook:=HookEvent(ME_SYSTEM_MODULESLOADED,@DoAutostart);
end;
function Load():int; cdecl;
diff --git a/plugins/Actman/i_dlglists.inc b/plugins/Actman/i_dlglists.inc
index ce2cc2138d..52808e63cd 100644
--- a/plugins/Actman/i_dlglists.inc
+++ b/plugins/Actman/i_dlglists.inc
@@ -9,7 +9,7 @@
num);
{
SendMessageW(wnd,CB_INSERTSTRING,num,
- dword(TranslateW(FastAnsiToWideBuf(str,buf))));
+ LPARAM(TranslateW(FastAnsiToWideBuf(str,buf))));
}
end;
diff --git a/plugins/Actman/i_opt_dlg2.inc b/plugins/Actman/i_opt_dlg2.inc
index f4bc0abdbb..4462c12d7d 100644
--- a/plugins/Actman/i_opt_dlg2.inc
+++ b/plugins/Actman/i_opt_dlg2.inc
@@ -1464,8 +1464,7 @@ begin
{
IDC_EDIT_WPAR,IDC_EDIT_LPAR: begin
SendMessage(lParam,CB_GETLBTEXT,
- SendMessage(lParam,CB_GETCURSEL,0,0),
- dword(@buf));
+ SendMessage(lParam,CB_GETCURSEL,0,0),TLPARAM(@buf));
if loword(wParam)=IDC_EDIT_WPAR then
FixParam(buf,IDC_EDIT_WPAR,IDC_FLAG_WPAR)
else
@@ -1818,7 +1817,7 @@ begin
begin
li.mask :=LVIF_PARAM;
li.iSubItem:=0;
- SendMessageW(wnd,LVM_GETITEM,0,dword(@li));
+ SendMessageW(wnd,LVM_GETITEM,0,TLPARAM(@li));
FreeAction(@NewActionList^[li.lParam]);
SendMessage(wnd,LVM_DELETEITEM,li.iItem,0);