Index: src/ch/MainWnd.cpp =================================================================== diff -u -N -r6995200b42c5327dda3779f44ce19980f1fa8cc0 -r930ff224a3da4a618051dab26803fb5fc703c95e --- src/ch/MainWnd.cpp (.../MainWnd.cpp) (revision 6995200b42c5327dda3779f44ce19980f1fa8cc0) +++ src/ch/MainWnd.cpp (.../MainWnd.cpp) (revision 930ff224a3da4a618051dab26803fb5fc703c95e) @@ -1987,16 +1987,16 @@ // prepare shortcuts char_vector cvShortcuts; const tchar_t* pszPath = NULL; - size_t stCount = pConfig->get_value_count(PP_RECENTPATHS); + size_t stCount = pConfig->get_value_count(PP_SHORTCUTS); for(size_t stIndex = 0; stIndex < stCount; stIndex++) { - pszPath = pConfig->get_string(PP_RECENTPATHS, stIndex); + pszPath = pConfig->get_string(PP_SHORTCUTS, stIndex); if(pszPath) cvShortcuts.push_back(pszPath); } // count of shortcuts to store - g_pscsShared->iShortcutsCount=__min(cvShortcuts.size(), SHARED_BUFFERSIZE-5*sizeof(_COMMAND)); + g_pscsShared->iShortcutsCount=__min(cvShortcuts.size(), (SHARED_BUFFERSIZE - 5 * sizeof(_COMMAND)) / sizeof(_SHORTCUT)); _SHORTCUT* pShortcut = g_pscsShared->GetShortcutsPtr(); CShortcut sc; for (int i=0;iiShortcutsCount;i++)