[BUG_FIXED] Fix Preference crash bug.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@109 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
525960820e
commit
e8323985c0
|
@ -823,6 +823,9 @@ BOOL CALLBACK LangMenuDlg::run_dlgProc(UINT Message, WPARAM wParam, LPARAM lPara
|
|||
pDestLst = &_langList;
|
||||
}
|
||||
size_t iRemove = ::SendDlgItemMessage(_hSelf, list2Remove, LB_GETCURSEL, 0, 0);
|
||||
if (iRemove == -1)
|
||||
return TRUE;
|
||||
|
||||
char s[32];
|
||||
::SendDlgItemMessage(_hSelf, list2Remove, LB_GETTEXT, iRemove, (LPARAM)s);
|
||||
|
||||
|
|
Loading…
Reference in New Issue