svnno****@sourc*****
svnno****@sourc*****
2011年 3月 7日 (月) 23:11:06 JST
Revision: 4372 http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=4372 Author: maya Date: 2011-03-07 23:11:06 +0900 (Mon, 07 Mar 2011) Log Message: ----------- OK を押すと、設定内容に不備があってダイアログを閉じない場合もフォントを削除してしまう問題を修正 Modified Paths: -------------- trunk/ttssh2/ttxssh/fwdui.c -------------- next part -------------- Modified: trunk/ttssh2/ttxssh/fwdui.c =================================================================== --- trunk/ttssh2/ttxssh/fwdui.c 2011-03-07 05:20:12 UTC (rev 4371) +++ trunk/ttssh2/ttxssh/fwdui.c 2011-03-07 14:11:06 UTC (rev 4372) @@ -1337,6 +1337,7 @@ PTInstVar pvar; LOGFONT logfont; HFONT font; + BOOL ret; switch (msg) { case WM_INITDIALOG: @@ -1370,11 +1371,13 @@ switch (LOWORD(wParam)) { case IDOK: - if (DlgFwdFont != NULL) { + ret = end_fwd_dlg(pvar, dlg); + + if (ret == TRUE && DlgFwdFont != NULL) { DeleteObject(DlgFwdFont); } - return end_fwd_dlg(pvar, dlg); + return ret; case IDCANCEL: free_all_listbox_specs(dlg);