[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:
donho 2008-01-17 23:43:48 +00:00
parent 525960820e
commit e8323985c0
1 changed files with 3 additions and 0 deletions

View File

@ -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);