summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-12-19 19:16:07 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-12-19 19:16:07 +0000
commit104e3eb32bebf907d928029a0a03e88c82d06cc1 (patch)
tree195b3e8c52cd8ad061a69baae3050a042124b586 /src
parent96ff0746ac203f99d5e51d720dfbd4baf6fdd766 (diff)
fix for buggy 2010 runtime
git-svn-id: http://svn.miranda-ng.org/main/trunk@15900 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/menu_utils.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mir_app/src/menu_utils.cpp b/src/mir_app/src/menu_utils.cpp
index 7b18c645ac..3d6d498883 100644
--- a/src/mir_app/src/menu_utils.cpp
+++ b/src/mir_app/src/menu_utils.cpp
@@ -940,8 +940,11 @@ static INT_PTR sttUpdateMenuService(WPARAM wParam, LPARAM)
mi.name.a = LPGEN("New submenu");
mi.position = 500050000;
BYTE *p = (BYTE*)&mi.uid;
- for (int i = 0; i < 16; i++)
- sscanf(&szCustomMenu[i*2], "%02x", &p[i]);
+ for (int i = 0; i < sizeof(MUUID); i++) {
+ int tmp;
+ sscanf(&szCustomMenu[i*2], "%02x", &tmp);
+ p[i] = tmp;
+ }
Menu_AddItem(pmo->id, &mi, NULL);
}