summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-12-02 16:19:19 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-12-02 16:19:19 +0000
commit54d71e2f3f7518fe3f1f2bf8dbb73b981c0a915f (patch)
tree46fb3695b4218b540b1b0658431369979161b5ff /src
parent355e14dd8faf38ca8c8e4293c13923a027352427 (diff)
forgotten assignment
git-svn-id: http://svn.miranda-ng.org/main/trunk@15805 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/menu_utils.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mir_app/src/menu_utils.cpp b/src/mir_app/src/menu_utils.cpp
index db0a66bd5b..88bcf826ae 100644
--- a/src/mir_app/src/menu_utils.cpp
+++ b/src/mir_app/src/menu_utils.cpp
@@ -932,7 +932,8 @@ static HMENU BuildRecursiveMenu(HMENU hMenu, TMO_IntMenuItem *pRootMenu, WPARAM
ptrT szValue(db_get_tsa(NULL, szModule, menuItemName));
if (szValue != NULL) {
TCHAR tszCustomName[201]; tszCustomName[0] = 0;
- _stscanf(szValue, _T("%d;%d;%200s"), &visible, &pos, tszCustomName);
+ if (_stscanf(szValue, _T("%d;%d;%200s"), &visible, &pos, tszCustomName) >= 2)
+ mi->position = pos;
if (tszCustomName[0])
replaceStrT(pmi->CustomName, tszCustomName);
}