Skip to content

Commit

Permalink
MinGWでビルドが通らなくなっていたので修正
Browse files Browse the repository at this point in the history
- error: passing argument 3 of 'SetWindowLongPtrW' makes integer
   from pointer without a cast [-Wint-conversion]
- error: incompatible pointer to integer conversion passing 'void *'
   to parameter of type 'LONG_PTR' (aka 'long long') [-Wint-conversion]
- 56367b9
  • Loading branch information
zmatsuo committed Sep 25, 2024
1 parent 3caf04b commit 89a46bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ttssh2/ttxssh/ttxssh.c
Original file line number Diff line number Diff line change
Expand Up @@ -1369,7 +1369,7 @@ static INT_PTR CALLBACK TTXHostDlg(HWND dlg, UINT msg, WPARAM wParam, LPARAM lPa
case WM_DESTROY:
ComPortInfoFree(dlg_data->ComPortInfoPtr, dlg_data->ComPortInfoCount);
free(dlg_data);
SetWindowLongPtrW(dlg, DWLP_USER, NULL);
SetWindowLongPtrW(dlg, DWLP_USER, 0);
break;
}
return FALSE;
Expand Down

0 comments on commit 89a46bd

Please sign in to comment.