[BUG_FIXED] Fix writing a key in registry while preference dialog launches

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@357 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
donho 2008-11-25 12:52:01 +00:00
parent 8f03512943
commit e7a0a07fa9

View File

@ -62,7 +62,6 @@ BOOL CALLBACK RegExtDlg::run_dlgProc(UINT Message, WPARAM wParam, LPARAM lParam)
{
getRegisteredExts();
getDefSupportedExts();
writeNppPath();
//goToCenter();
::EnableWindow(::GetDlgItem(_hSelf, IDC_ADDFROMLANGEXT_BUTTON), false);
::EnableWindow(::GetDlgItem(_hSelf, IDC_REMOVEEXT_BUTTON), false);
@ -85,7 +84,8 @@ BOOL CALLBACK RegExtDlg::run_dlgProc(UINT Message, WPARAM wParam, LPARAM lParam)
{
case IDC_ADDFROMLANGEXT_BUTTON :
{
//int index2Add;
writeNppPath();
TCHAR ext2Add[extNameMax] = TEXT("");
if (!_isCustomize)
{