Browse Subversion Repository
Diff of /trunk/teraterm/teraterm/addsetting.cpp
Parent Directory
| Revision Log
| Patch
| 1666 |
if (wParam == (IDC_DEFAULTNAME_EDITOR | (CBN_SELCHANGE << 16))) { |
if (wParam == (IDC_DEFAULTNAME_EDITOR | (CBN_SELCHANGE << 16))) { |
| 1667 |
LRESULT r = SendDlgItemMessageW(IDC_DEFAULTNAME_EDITOR, CB_GETCURSEL, 0, 0); |
LRESULT r = SendDlgItemMessageW(IDC_DEFAULTNAME_EDITOR, CB_GETCURSEL, 0, 0); |
| 1668 |
if (r != CB_ERR) { |
if (r != CB_ERR) { |
| 1669 |
format = (wchar_t*)malloc(50 * sizeof(wchar_t)); |
LRESULT len = SendDlgItemMessageW(IDC_DEFAULTNAME_EDITOR, CB_GETLBTEXTLEN, r, 0); |
| 1670 |
|
format = (wchar_t*)malloc((len + 1) * sizeof(wchar_t)); |
| 1671 |
SendDlgItemMessageW(IDC_DEFAULTNAME_EDITOR, CB_GETLBTEXT, r, (LPARAM)format); |
SendDlgItemMessageW(IDC_DEFAULTNAME_EDITOR, CB_GETLBTEXT, r, (LPARAM)format); |
| 1672 |
} |
} |
| 1673 |
} |
} |
|
|
Legend:
| Removed from v.10455 |
|
| changed lines |
| |
Added in v.10456 |
|
|
| |