diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/menu_utils.cpp | 3 |
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);
}
|