summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-06-24 15:02:42 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-06-24 15:02:42 +0000
commit727a0432f5909ba54e6d15010fde94dff825fe5e (patch)
tree2bca1de02335533dc2678c143e7b8ff088c25d47 /src/mir_core
parent0ccdb951979ead80e9264233776b9147ff701fc7 (diff)
fixes for MENUITEMINFO declarations
git-svn-id: http://svn.miranda-ng.org/main/trunk@14363 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/mir_core')
-rw-r--r--src/mir_core/src/langpack.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mir_core/src/langpack.cpp b/src/mir_core/src/langpack.cpp
index 9f048b21ec..c93dee0a3e 100644
--- a/src/mir_core/src/langpack.cpp
+++ b/src/mir_core/src/langpack.cpp
@@ -522,7 +522,9 @@ MIR_CORE_DLL(void) TranslateMenu_LP(HMENU hMenu, int hLangpack)
{
MUUID *uuid = Langpack_LookupUuid(hLangpack);
- MENUITEMINFO mii = { sizeof(mii) };
+ MENUITEMINFO mii = { 0 };
+ mii.cbSize = sizeof(mii);
+
for (int i = GetMenuItemCount(hMenu) - 1; i >= 0; i--) {
TCHAR str[256];
mii.fMask = MIIM_TYPE | MIIM_SUBMENU;