Skip to content

Commit

Permalink
Send Fileダイアログを修正 #380
Browse files Browse the repository at this point in the history
- 終了時、開放済みメモリを参照しないよう修正
- "Tera Term 4 と同じ方法で送信" チェックボタンを押した後の動作が不定だったので修正
  • Loading branch information
zmatsuo committed Nov 28, 2024
1 parent 0c7b571 commit 9799f7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion teraterm/teraterm/sendfiledlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ static INT_PTR CALLBACK SendFileDlgProc(HWND hDlgWnd, UINT msg, WPARAM wp, LPARA
TipWin2Destroy(work->tip);
work->tip = NULL;
free(work);
SetWindowLongPtr(hDlgWnd, DWLP_USER, 0);
return FALSE;
}
case WM_COMMAND:
Expand Down Expand Up @@ -224,7 +225,7 @@ static INT_PTR CALLBACK SendFileDlgProc(HWND hDlgWnd, UINT msg, WPARAM wp, LPARA

case IDC_SENDFILE_CHECK_4 | (BN_CLICKED << 16):
ArrangeControls(hDlgWnd);
break;
return TRUE;

case IDC_SENDFILE_FILENAME_BUTTON | (BN_CLICKED << 16): {
wchar_t *filename_ini;
Expand All @@ -251,6 +252,7 @@ static INT_PTR CALLBACK SendFileDlgProc(HWND hDlgWnd, UINT msg, WPARAM wp, LPARA
default:
return FALSE;
}
break;

case WM_DROPFILES: {
// 複数ドロップされても最初の1つだけを扱う
Expand Down

0 comments on commit 9799f7d

Please sign in to comment.