< prev index next >
src/java.desktop/windows/native/libawt/windows/awt_Toolkit.cpp
Print this page
@@ -1104,11 +1104,11 @@
AwtComponent* comp = (AwtComponent*)JNI_GET_PDATA(peer);
if (comp != NULL)
{
comp->SetInputMethod(self, useNativeCompWindow);
- comp->ImmAssociateContext((HIMC)context);
+ comp->ImmAssociateContext((HIMC)((intptr_t)context));
}
if (peer != NULL) {
env->DeleteGlobalRef(peer);
}
@@ -3137,11 +3137,11 @@
void AwtToolkit::ShowTouchKeyboard() {
if (m_isWin8OrLater && m_touchKbrdAutoShowIsEnabled &&
(m_touchKbrdExeFilePath != NULL)) {
HINSTANCE retVal = ::ShellExecute(NULL, _T("open"),
m_touchKbrdExeFilePath, NULL, NULL, SW_SHOW);
- if ((int)retVal <= 32) {
+ if ((int)((intptr_t)retVal) <= 32) {
DTRACE_PRINTLN1("AwtToolkit::ShowTouchKeyboard: Failed"
", retVal='%d'", (int)retVal);
}
}
}
< prev index next >