< prev index next >
src/java.desktop/windows/native/libawt/windows/awt_TextField.cpp
Print this page
@@ -100,11 +100,11 @@
* the mouse pointer is not over the selected region.
* In this case we sacrifice backward compatibility
* to allow dnd of the current selection.
*/
if (msg->message == WM_LBUTTONDBLCLK) {
- jchar echo = SendMessage(EM_GETPASSWORDCHAR);
+ jchar echo = static_cast<jchar>(SendMessage(EM_GETPASSWORDCHAR));
if(echo == 0){
SetStartSelectionPos(static_cast<LONG>(SendMessage(
EM_FINDWORDBREAK, WB_MOVEWORDLEFT, lCurPos)));
SetEndSelectionPos(static_cast<LONG>(SendMessage(
< prev index next >