summaryrefslogtreecommitdiff
path: root/include/delphi/m_helpers.inc
diff options
context:
space:
mode:
Diffstat (limited to 'include/delphi/m_helpers.inc')
-rw-r--r--include/delphi/m_helpers.inc12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/delphi/m_helpers.inc b/include/delphi/m_helpers.inc
index ac89dd005f..2d1cdadeeb 100644
--- a/include/delphi/m_helpers.inc
+++ b/include/delphi/m_helpers.inc
@@ -392,22 +392,26 @@ end;
function Menu_AddMainMenuItem(mi:PMO_MenuItem):HGENMENU;
begin
- result:=_AddMainMenuItem(mi, hLangpack);
+ mi^.hLangpack:=hLangpack;
+ result:=_AddMainMenuItem(mi);
end;
function Menu_AddContactMenuItem(mi:PMO_MenuItem):HGENMENU;
begin
- result:=_AddContactMenuItem(mi, nil, hLangpack);
+ mi^.hLangpack:=hLangpack;
+ result:=_AddContactMenuItem(mi, nil);
end;
function Menu_AddStatusMenuItem(mi:PMO_MenuItem):HGENMENU;
begin
- result:=_AddStatusMenuItem(mi, nil, hLangpack);
+ mi^.hLangpack:=hLangpack;
+ result:=_AddStatusMenuItem(mi, nil);
end;
function Menu_AddProtoMenuItem(mi:PMO_MenuItem):HGENMENU;
begin
- result:=_AddProtoMenuItem(mi, nil, hLangpack);
+ mi^.hLangpack:=hLangpack;
+ result:=_AddProtoMenuItem(mi, nil);
end;
function Menu_AddTrayMenuItem(mi:PMO_MenuItem):HGENMENU;